Full-Stack Developer Question:
Download Questions PDF

Can you 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(''));

Download Full-Stack Developer Interview Questions And Answers PDF

Previous QuestionNext Question
Explain me which frameworks are you most familiar with?Tell us are you a team player? Give an example of a time when you had to resolve a conflict with another member on your team?