Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
These tests failing when adding anything to Array.prototype are a great example of why not to use "for(var x in y)" loops.
My solution was failing for a while and I didn't understand why until coming to the discussion and reading about that. I even wrote a helper method to check my solutions were valid.
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
It's a joke. They just submitted enough times for the "random()" call to return 10, but they said their lucky number was 10 so it looks planned.
Agreed. I was having it edit the array in-place like the JS .sort() and my tests passed but the "submit" tests failed. It took me a minute to figure out why.