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
My solution works fine in VS Code...
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
Mate, this is beautiful. Simple, elegant and easy to understand, even for a beginner like me. Thanks a lot!
My solution works in VS Code but on here, it is saying that for an empty string input, it was expecting the function to return '1'. This makes no sense as '1' represents the letter 'a'. If the input string contains nothing, then I don't see how a return of '1' can possibly be expected.
My solution works perfectly fine in my editor but it's not been accepted on here. I used a switch statement.
This comment is hidden because it contains spoiler information about the solution
For some reason, I thought the toString() method was necessary at the end of this one.
Seeing submissions like this is what I love about Codewars. I feel like I'm constantly learning more efficient ways to do things. Thanks!
I love this approach. Really creative. Cheers!
I've tried using the return keyword after the conditionals in ternary statements before but it's never worked. It's nice to know that I can use return at the beginning of statements. Cheers!
I love this!
This comment is hidden because it contains spoiler information about the solution
Who else did the task in the simplest and easiest possible way just so they could see what others had done? Come on now, be honest! ;-)
Loading more items...