Palindrome Checker - 1 eye for of 1 eye. test error

In the JavaScript Algorithms and Data Structures Projects, in the last section, in the Palindrome Checker exercise, there’s a test to check if the string 1 eye for of 1 eye. is a palindrome. This string is a palindrome, but the test expects it to not be one.

That string is not a palindrome.

You’ll need to remove all non-alphanumeric characters

1 is a number and thus an alphanumeric character.

Got it, so numbers are included! My mistake!

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.