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.
Great answer! You could refactor it even more and remove the turnary operator, it would still work the same way with less code.
Yeah, I just checked and it fails the empty string test. I learned something about charAt and slice that I wouldnt have known with this kata. It's quite interesting, I honestly didnt expect that behaviour from those methods.
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
Great answer, its really well thought out!
Great solution, it's really easy to read and follow. This should be on the font page.