determine whether an integer is a palindrome problem 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("");
}