Junior — Senior
Check if a number is a palindrome
livecode
Task condition
You need to write a function isPalindrome that returns true if the given integer reads the same from left to right and right to left. Negative numbers are considered not palindromes.
function isPalindrome(num) {
return;
}
console.log(isPalindrome(1234321)); // true
console.log(isPalindrome(-23432)); // false