You need to sign in or sign up before continuing.×
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.
This comment is hidden because it contains spoiler information about the solution
I would say that's a bit messy syntax. Function should be declared at least with 'const' keyword.
I don't think this solution is accurate as function is defined in a wrong way. In this case when syntax from ES6 is used there should be 'const' keyword. I guess it works only because it's executed without strict mode.
The same for me. Done this kata in JS and passed all tests. I 've used similar logic as for JS with C#, basic tests passed but I've failed with random tests.
There's surely some issue with tests-sample tests require for empty string to return value 'false' while full tests require 'true'.