JS Project 1 - Palindrome Checker

I’m not sure if it is just me (and my code), but I think that there is an error in one of the tests, specifically:

palindrome(“1 eye for of 1 eye.”) should return false.

I think this should return true (i.e. ‘eyeforofeye’ is a palindrome)

Palindrome Checker


You are removing the numbers from the string. It says to remove all non-alphanumeric characters (punctuation, spaces and symbols) which means remove everything not a number or letter. If you don’t remove the numbers the string is clearly not a palindrome.

Well, that’s embarrassing… :sweat_smile: haha thanks :slight_smile:

It’s no problem. I’ve experienced plenty of mistakes in my time that have made me feel embarassed when I finally solved them.