Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

palindrome number

let data = 12421

const dataOne = data.toString().split("").reverse().join("");
data = data.toString();

dataOne === data ? console.log("Palindrom")
  : console.log("Not Palindorm"); 
Source by www.freecodecamp.org #
 
PREVIOUS NEXT
Tagged: #palindrome #number
ADD COMMENT
Topic
Name
9+7 =