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
Explain javascript debounce function?
Why does the browser display the slow script warning?
What is "this"?
What typeof returns for a null value?
What are escape characters?
What is the difference between a web-garden and a web-farm?
What is difference between arrow function and normal function?
What is a null variable?
What is prototype in javascript and how do you use it?
How can you do a character count in javascript?
What is encodeuri() in javascript?
What is escape() function?
a code in vb script, which creates a table of 5*2 in html this is a static table, one more same dynamic table, as we give input the table should get created.
What is NaN in Javascript?
coding of java scripts