← All coding problems

Palindrome check

EasyStrings

Return true if s reads the same forwards and backwards, ignoring case and any character that is not a letter or digit.

Function
function solve(s)
Example 1
s = "Madam"
→ true
Example 2
s = "hello"
→ false

Submit also runs 4 hidden tests, including edge cases.

console.log output is shown below