Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

palindrome short way

function palindrome2(str) {
	return str.toLowerCase() === str.toString().toLowerCase().split('').reverse().join('') ? true : false;
}
Source by www.programiz.com #
 
PREVIOUS NEXT
Tagged: #palindrome #short
ADD COMMENT
Topic
Name
5+6 =