read a number and check for palindrome code example
Example 1: formula for finding a mathematical palindrome
how to check if a number is a palindrome or not
Example 2: check if palindrome
function isPalindrome(str) {
str = str.toLowerCase();
return str === str.split("").reverse().join("");
}