Pregunta de entrevista de Crayon

How would you write palindrome in JavaScript.