Check if a Word is a Palindrome in JavaScript

Prompt

Result