Advertisement
Onesible

Untitled

Mar 6th, 2025
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. function solve(nums) {
  2.     for (let num of nums) {
  3.         let numToString = num.toString()
  4.  
  5.         if (numToString == numToString.split('').reverse().join('')) {
  6.             console.log(true);
  7.         } else {
  8.             console.log(false)
  9.         }
  10.     }
  11. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement