Domanda di colloquio di Crayon

How would you write palindrome in JavaScript.