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
Is there automatic type conversion in JavaScript?
How to change style on an element?
What close() does in javascript?
What Does JavaScript Void(0) Mean?
To put a "close window" link on a page ?
How many data types are there in javascript?
What are the different types of errors supported by javascript?
What are exports & imports?
Create a new javascript object with the keys of “fname” equal to your first name, “lname” equal to your last name, and “fcolors” equal to and array of 3 of your favorite colors. Assign this object to a variable called “me” and log it to the console.
How to create array in JavaScript?
How can javascript codes be hidden from old browsers that don't support javascript?
Define a named function in javascript.
What is the most popular javascript library?
In javascript what is an argument object?
How to detect browser name using JavaScript?