Write a program to check whether a given number is a
palindrome or not?
Answer Posted / annshuk
function isPalidrome(str){
if(str== str.split('').reverse().join())
return str +"is palidrome";
else return str +"try another string";
}
| Is This Answer Correct ? | 0 Yes | 4 No |
Post New Answer View All Answers
Are Attributes and Property the same?
How to getting values from cookies to set widgets?
Where do you write javascript?
What is difference == and === in javascript?
How to convert javascript date to iso standard?
Why typeof null is object?
How do I add javascript to chrome?
How long does it take to learn javascript?
What is prototype in javascript and how do you use it?
What is the Infinity property used for in Javascript?
Give an example of closure?
How to access the value of a textbox using javascript?
Which is better for or foreach in javascript?
What is built in function in javascript?
How to embed javascript in a web page?