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.
True, I have no idea why I've decided to use this function
This technically shouldn't count as valid since it will consider strings containing numbers as okay.
You're right about using an array or object literal but I'll take the ifs over a switch any day. A switch is like an if with extra steps. I'm with Crockford on that one, not even once!
This comment is hidden because it contains spoiler information about the solution
nice! so easy to read.
This comment is hidden because it contains spoiler information about the solution
I passed sample tests... but failed one test when submited. I wrote the same dumb solution in javascript and I passed all tests.
666
you can refactor the solution maybe to a switch.. it would be nice to see a lot of returns and breaks :D
gg