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.
String(i).length is new syntax sugar for my knowlege. TXH :)
This comment is hidden because it contains spoiler information about the solution
The LHS does not use the
reverse
method.conversion to String is needed to use the method reverse
good point
Yes, technically it should but the question does not mention that the code needs to handle strings in case insensitive manner.
why is this a palindrome if "anna"-"Anna" is not recognize as palindrome?
It works! but makes more sense checking for sum == i after you atually sum all digits
This comment is hidden because it contains spoiler information about the solution
There was no need for "i++" inside the "if" statement.
the unique that I could read and understand <3
Oh i see, that stuff about how we cant compare objects directly. Thanks.
Array is an object, so strict equality won't evaluate as true.
This comment is hidden because it contains spoiler information about the solution
Loading more items...