<|system|>
Implement a JavaScript function that checks if a given word is a palindrome (reads the same backward as forward).
</s>.
<|user|>
Can you answer based on context?
<|assistant|>
function isPalindrome(word) {
  const reversedWord = word.split('').reverse().join('');
  return word === reversedWord;
}

// Test the function
console.log(isPalindrome("racecar")); // true
console.log(isPalindrome("hello")); // false