title: Simple JS palindrome function getting "unexpected identifier" error
body: <p>This simple little function is throwing an "unexpected identifier" error and I don't know why.</p>
  
  <pre><code>function palindromeCheck(word) {
      var reversed = word.split("").reverse().join("");
      if (reversed === word) {
      return "Yay, " + word + " is a palindrome!";
    } else {
      return "Drats, " + word + " isn't a palindrome.";
    };
  };
  
  palindromeCheck("racecar");
  </code></pre>