Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

palindrome

// Should Check if the argument passed is a string
function isPalindrome(str){
	return typeof str === "string"
		? str.split("").reverse().join("") === str
		: "Value is not a type string";
}
Source by www.freecodecamp.org #
 
PREVIOUS NEXT
Tagged: #palindrome
ADD COMMENT
Topic
Name
6+7 =