Can you write a function that can determine whether a string is a palindrome in under 100 characters?

Submitted by: Muhammad
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(''));
}
Submitted by: Muhammad

Read Online Full-Stack Developer Job Interview Questions And Answers