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.
BanAaron, that's a space not an empty string. When i = '' none of those checks returns True
It will catch empty strings because when
i == " "
it will not be found inabc
ornum
and returnFalse
how does this catch empty strings?
This comment is hidden because it contains spoiler information about the solution
no, as strings are immutable in JS
Does this alter the original word?