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
what are the differences between as2 and as3?
How to remove duplicates from javascript array?
What is unobtrusive javascript?
What are the javascript data types?
How do I add javascript to chrome?
What is spread syntax?
What is the === in javascript?
How to prevent modification of an object in Javascript?
What is the disadvantage of using innerhtml in javascript?
Is it safe to use javascript?
What are different types of scope chain available in javascript?
What is variable typing?
What is Unobtrusive JavaScript & Why it's Important?
What are the scopes of a variable in javascript?
What is the default data type in javascript?