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.
n^2
clever!
thats very weird
I couldn't either, I went descending order tho, why would that make a difference?
This comment is hidden because it contains spoiler information about the solution
Nice! I was wondering how to do it with a switch case..
This comment is hidden because it contains spoiler information about the solution
I don't think this solution is accurate as function is defined in a wrong way. In this case when syntax from ES6 is used there should be 'const' keyword. I guess it works only because it's executed without strict mode.