Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

Write a program to check whether a given number is a
palindrome or not?

Answer Posted / kamal kumar

<script>
function bon()
{
var y="";
var j= document.getElementById("ty").value;
var k = j.split('');
for(var l= k.length; l>0; l--)
{
y+=k[l-1];
}
if(j==y)
{
alert("This is Palidrome");
}
else
{
alert("This not Palidromn");
}
}
</script>
<body>
<input type="number" id="ty">
<button onclick=" bon()"> Come On!</button>
</body>

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How do you include a comment in javascript?

903


How to create the namespace in javascript?

1027


How do you clear an array in javascript?

937


What is the reason for wrapping the entire content of a javascript source file in a function book?

1027


How to get value from dropdown (select) control?

1055


What are exports & imports?

949


How to get an element by class in javascript ?

1086


How do we add javascript onto a web page?

945


What is difference between javascript and jscript?

908


Difference between Client side JavaScript and Server side JavaScript?

1699


What is a closure javascript?

1022


Name some of the ways in which Type Conversion is possible?

949


How to make a array as a stack using javascript?

1006


How do we get javascript onto a web page?

869


Why is javascript so hard?

854