Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

Palindrome Number

var isPalindrome = function(x) {
    
let y = x
let r = y.toString().split('').reverse().join('')

let t = Number(r)

if(t ===x){
  return true
}
else{ 
  return false}


}
Source by www.freecodecamp.org #
 
PREVIOUS NEXT
Tagged: #Palindrome #Number
ADD COMMENT
Topic
Name
6+8 =