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.
Example should use equality comparison ('===' or '==') rather than single equals signs ('=').
Nice problem. My one comment is that this might be a more universally applicable challenge if the string to test against were passed in as an argument to the function, rather than set as a global variable.
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
Would be worth adding some tests. Also I kind of agree that leaving out the loop skeleton would make this a little more interesting.