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.
How is "momsie" a palindrome?
The test case is wrong, I guess.
JS :
Your function should accept a string as a parameter
The test cases include non-strings.
Plus as noted below
It's a duplicate. With 21 other search results for "palindrome" on JavaScript, yes, that's an issue.
If you're going to ask for the most efficient implementation, at least measure a solution's efficiency. Yes, it is possible to measure the time it takes a solution to run the tests. No, it's not an exact science, because of varying server load. But with that addition to the tests (huge tests if you want to measure anything other than 0 ms, but hey, that can be done), you would have something that's not the umpteenth duplicate.
As it is, you don't even have random tests. Which, admittedly, allows for very, very efficient "solutions".