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} }