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.
I'll readily admit that this is a terrible submission, it's been a long tiring week so mental energy is at a very low ebb. And this only passed assessment with multiple attempts. So that makes this both unreliable and ugly. But at least it enabled me to see the far more elegant solutions already submitted :-)
Elegant ;-)
Can someone please explain how this answer is 'better' per say than other solutions here, for example Arhigod's solution. While it's functional it is verbose, uses a plethora of unnecessary variables, has a console.log still stuck in it and as a result still has lots of room for refactoring. Genuinely wondering?