Implement a JavaScript function that checks if a given word is a palindrome (reads the same backward as forward).

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