Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

palindrome

function palindrome(str) {
	if (str.toLowerCase() === str.toString().toLowerCase().split('').reverse().join('')) {
		return true;
	} else {
		return false;
	}
}
Source by www.programiz.com #
 
PREVIOUS NEXT
Tagged: #palindrome
ADD COMMENT
Topic
Name
1+9 =