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.linkedin.com #
 
PREVIOUS NEXT
Tagged: #palindrome #number
ADD COMMENT
Topic
Name
1+8 =