Free Code Camp Javascript Project 1 - Palindrome Checker
Return true if the given string is a palindrome. Otherwise, return false.
A palindrome is a word or sentence that's spelled the same way both forward and backward, ignoring punctuation, case, and spacing.
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.
We'll pass strings with varying formats, such as "racecar", "RaceCar", and "race CAR" among others.
We'll also pass strings with special symbols, such as "2A33a2", "2A3 3a2", and "2_A33#A2".
Tips and tricks: ignoreCase regex = /some string/i check for more than one occurance in a sting = /some sting/g strRegex.test(testStr) = return boolean if found testStr.match(strRegex) = returns the matched value check for /A-Za-z0-9_/ = /\w/ (checks all alphanumeric values plus underscore) check for /^A-Za-z0-9_/ =/\W/ (Checks everything but alphanumeric values plus underscore) input.replace(/[^a-z0-9]/gi, '')