let data = 12421 const dataOne = data.toString().split("").reverse().join(""); data = data.toString(); dataOne === data ? console.log("Palindrom") : console.log("Not Palindorm");