Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

check if palindrome

function isPalindrome(str) {
  str = str.toLowerCase();
  return str === str.split("").reverse().join("");
}
Source by www.freecodecamp.org #
 
PREVIOUS NEXT
Tagged: #check #palindrome
ADD COMMENT
Topic
Name
7+3 =