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.geeksforgeeks.org #
 
PREVIOUS NEXT
Tagged: #check #palindrome
ADD COMMENT
Topic
Name
9+1 =