12. Write a JavaScript function that checks whether a passed Number is palindrome or not?
function isPalindromeNumber(no) { var a,b,temp=0; b=no; while(no>0) { a=no%10; no=parseInt(no/10); temp=temp*10+a; } if(temp==b) { console.log("Palindrome number"); } else { console.log("Not Palindrome number"); } } isPalindromeNumber(121); isPalindromeNumber(122);