Day 38: Palindrome Number or not of 100DaysCodingChallenge

Hello all, 

I have started the 100 days of coding challenge to improve my programming skills..

Today is the Day38 of 100DaysCodingChallenge for 

to check whether an input Number taken by the user is a Palindrome Number or not.

Code : 

let a = prompt("Enter a : ");
let b = a.split('').reverse().join('');
if (a == b) {
  console.log(a, "is a Palindrome Number.");
} else {
  console.log(a, "is not a Palindrome Number.");
}

Output :     

 


Happy Coding:)

Thank you... 

Comments

Popular posts from this blog

Day 100: Date Time to Number of 100DaysCodingChallenge

Day 64: Pattern using loops of 100DaysCodingChallenge

Day 20: Positive Number of 100DaysCodingChallenge