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.
I'm so tired of these katas with no test cases... Why release the javascript kata without writing just one test case? sigh
Is it really a good idea to use any kind of state unless it is actually needed?
Doesn't quite work as intended...
arr = [0,1,2,2,3];
[0, 1, 2, 2, 3]
arr.numberOfOccurrences("2")
2