CG
CodeGym
Lessons
Challenges
Challenges
Lessons
Challenges
EN
Light
Sign in
Problem
Code
Description
Test cases
Submissions
Palindrome Number
White
math
Given an integer
x
, return
true
if
the integer is a palindrome
, otherwise return
false
.
Constraints
-2^31 <= x <= 2^31 - 1
JavaScript
▾
Reset
Run
Submit
9
1
2
3
4
5
6
7
8
›
/**
* @returns {boolean}
*/
var
isPalindrome
=
function
(
x
) {
}
;
module
.
exports
=
{
isPalindrome
}
;