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.
Daamn! I figured it out!
The kata shows errors even when i copy and paste it. Why? :с
And then
0n
was invented ..( These days there are
9
falsy values instead of6
. )true enough, but at time of writing the code, default parameters threw out the syntax highlighting on codewars
This works, but much nicer in ES6 is to use default parameters https://developer.mozilla.org/en/docs/Web/JavaScript/Reference/Functions/Default_parameters