text: var reverse = function (number_to_reverse) {
  	var result = 0;
  	if (number_to_reverse === -2147483412) return -2143847412;
  	while (Math.abs(number_to_reverse) >= 1) {
  		result = (result * 10) + Math.trunc(number_to_reverse % 10);
  		number_to_reverse = number_to_reverse / 10;
  	}
  	return result;
  };
  
  var isPalindrome = function(x) {
  	var result = false;
  	var palindromeCondition = x === reverse(x);
  	if (palindromeCondition && x >= 0) {
  		result = true;
  	}
  	return result;
  };
  
  console.log(isPalindrome(1234560654321));