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


Please Help Members By Posting Answers For Below Questions

Is javascript enabled on chrome?

644


What does ecma stand for?

612


How to handle event handlers?

702


Difference between Pure functions Vs. Impure functions in javascript?

686


What happens when the recursion calling is applied on two functions?

712


Why is javascript so popular?

649


How many days it will take to learn javascript?

633


What are the main functions performed by javascript statements?

745


How to get the type of arguments passed to a function?

702


How to delete a cookie using javascript?

705


What close() does in javascript?

664


What is a name function in javascript & how to define it?

688


Why is javascript so important?

681


How to create array in JavaScript?

767


How you will add function as a property in a javascript object? Give an example.

749