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.
Because it was not initialized using the 'var' or 'let' keyword.
This comment is hidden because it contains spoiler information about the solution
You are right, the solution is not universal.
In many different katas we have this situation: if additional conditions described, authors do shortest solution, wich works only in particular case.
It seems the kata currently only works when you press "Submit", not when you "Run Tests". I'm pretty sure it worked before and this is due to a change in Codewars. I'll check with the admins.
Oops, that's embarrasing. Thanks for catching that!