Palindrome Checker A palindrome checker checks if a string is a palindrome or not A palindrome is a word or sentence that s spelled the same way both forward and backward ignoring punctuation case and spacing returns true if the passed word is a palindrome the function ignores case and spacing function palindrome wrd for let i 0 i wrd length 2 i if wrd i toLowerCase wrd wrd length 1 i toLowerCase console log wrd NOT palindrome return false end for i console log wrd is palindrome return true end palindrome palindrome raar palindrome raaR palindrome ElilE palindrome Cat palindrome Once ecnO console log ready
i if wrd i toLowerCase wrd wrd length 1 i toLowerCase console log wrd NOT palindrome return false end for i console log wrd is palindrome return true end palindrome palindrome raar palindrome raaR palindrome ElilE palindrome Cat palindrome Once ecnO console log ready