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
what data type javascript supports?
Are you concerned that older browsers don't support javascript and thus exclude a set of web users? Individual users?
Explain higher-order functions in javascript?
What is use of flutter?
What is an asynchronous programming? Why is it important in javascript?
Write a program to exaplain the deferred scripts using event handlers in javascript.
How do you define a class and its constructor?
How to import all exports of a file as an object.
What is use of settimeout function in javascript?
Why jquery is used instead of javascript?
What is undefined value means in javascript?
What value does prompt() return if the user clicked the cancel button?
What is design pattern in javascript? Explain
What are the Advantages and Disadvantages of JavaScript?
How to get height and width of different browser in Javascript?