Skip to content

Instantly share code, notes, and snippets.

View iseykim's full-sized avatar
🎯
Focusing

Sey Kim iseykim

🎯
Focusing
View GitHub Profile

Palindrome Check

Given a string str, create a function that returns a boolean, corresponding to whether that string is a palindrome (spelled the same backwards and forwards). Our palindrome check should be case-insensitive.

isPal('car')                   // false
isPal('racecar')               // true
isPal('RaCecAr')               // true
isPal('!? 100 ABCcba 001 ?!')  // true