Pallindrome Number

PHOTO EMBED

Thu Nov 05 2020 15:37:48 GMT+0000 (UTC)

Saved by @snigdhakhurana10

function pallindromeNumber(num){
  let rem, final=0, temp = num;
  while(num > 0){
    rem = num % 10;
    num = parseInt(num/10);
    final = final * 10 + rem;
  }
  if(final === temp)
      return true;
  return false;
}

console.log(pallindromeNumber(12321));
content_copyCOPY