⟩ Write a function that can determine whether a string is a palindrome in under 100 characters?
A palindrome is a word, phrase, or sequence of letters that reads the same backwards or forwards. It also makes a great test for checking their ability to handle strings.
function isPalindrome(str) {
str = str.replace(/s/g, '').toLowerCase();
return (str == str.split('').reverse().join(''));
}