Crayon interview question

How would you write palindrome in JavaScript.