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

What is closure? Give an example.

979


How can a page be forced to load another page in javascript?

1070


Is javascript the future?

905


To set all checkboxes to true using javascript?

1035


What is an immediately-invoked function expression?

877


what is function of stdio.h

2462


What is spread syntax?

901


How are event handlers utilized in javascript?

1036


How to select an element by id and swapping an image?

855


What is the use of blur function in JavaScript?

1001


How to redirect a url using JavaScript?

1057


What are the methods involved in javascript?

1000


Is html and javascript the same?

845


What is the use of let & const in javascript?

913


How to write comment in JavaScript?

1432