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 javascript enabled on chrome?
What does ecma stand for?
How to handle event handlers?
Difference between Pure functions Vs. Impure functions in javascript?
What happens when the recursion calling is applied on two functions?
Why is javascript so popular?
How many days it will take to learn javascript?
What are the main functions performed by javascript statements?
How to get the type of arguments passed to a function?
How to delete a cookie using javascript?
What close() does in javascript?
What is a name function in javascript & how to define it?
Why is javascript so important?
How to create array in JavaScript?
How you will add function as a property in a javascript object? Give an example.