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.
It must have been 8 kyu
This comment is hidden because it contains spoiler information about the solution
hahaha, you could also reduce it more with
let t = this
xDhahaha
You don't need to use else at the very end.
If you use return, then you don't need to use break.
It seems you both have copy & pasted mine
Cheat)
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
Me not... Thank God! ;-P
Oh,no! A lot of people copy&paste my solution ;-)