Palindrome in JavaScript (example 212,3443 )

Write a program to accept a no. from user and check whether Palindrome or not.

Enter A Number:

<HEAD><title>Palindrome by kbkashid</title>
<script language='JavaScript'>
 function chkpalindrome()
    var temp,rev=0
    var no=parseInt(frm.t1.value)
       alert(temp +" Is Palindrome")
     alert(temp + " Is Not Palindrome")

<BODY><form name=frm>
Enter A Number:<input type=text name=t1 /><input type=button value='Is Palindrome' onclick="chkpalindrome();">


  1. Replies
    1. Hi, Great.. Tutorial is just awesome..It is really helpful for a newbie like me.. I am a regular follower of your blog. Really very informative post you shared here. Kindly keep blogging. If anyone wants to become a Front end developer learn from Javascript Training in Chennai . or learn thru JavaScript Online Training in India. Nowadays JavaScript has tons of job opportunities on various vertical industry. JavaScript Training in Chennai

  2. is it possible to check the number is palindrome or not without code is some thing like this

  3. try no = no.split('').reverse().join();
    if true than it is palidrome


Thanks for visiting my Blog!

Have a Question ? Need Help in College Assignments, Need Code that is not available here? Just leave a comment & get your code instantly.

Tips to Enhance Your Blog