Question d’entretien chez Crayon

How would you write palindrome in JavaScript.