We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 585e839 commit d1b2623Copy full SHA for d1b2623
PalindromeNumber.js
@@ -0,0 +1,6 @@
1
+var isPalindrome = function (x) {
2
+ let conNumber = x.toString().split("").reverse().join("");
3
+ return x.toString() === conNumber ? true : false;
4
+};
5
+
6
+console.log(isPalindrome(121));
0 commit comments