Tell us what’s happening:
I’m trying to figure out what I am doing wrong here. Trying to figure out how to do the " palindrome("1 eye for of 1 eye.") should return false ." bit, can anyone help me out here?
Note: You’ll need to remove all non-alphanumeric characters (punctuation, spaces and symbols) and turn everything into the same case (lower or upper case) in order to check for palindromes.
your question is vague. What do you mean by “example of a code”?
If you mean you would like to know how to use regex patterns, you can revise this either on fCC in the javascript curriculum. oryou can also google “js regex cheat sheet” and get a list of different patterns and their meanings that you can try to apply
What I was trying to ask is for an example for the code to remove all non-alphanumeric characters, and to complete the " palindrome("1 eye for of 1 eye.") should return false ." requirement.
I’m trying to figure it out, but I’m not sure how to fix the code to complete the “palindrome("1 eye for of 1 eye.") should return false .” requirement.