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.
Ah I forgot that we could put that in the Test field. Makes room for some interesting things!
This comment is hidden because it contains spoiler information about the solution
A harder version could be cool, do we have the ability to disable functions?
Yeah its an easy kata, but I see what your driving at. A harder version could be made where reverse is disabled - to force/encourage outside of the box thinking.
Why? It's in JavaScript so people should use it.
Nothing is being returned from this function
I added an example of the expected output, and more descriptive test cases.