Crayon Interview Question

How would you write palindrome in JavaScript.