function showRandomGreeting() {
  const greetings =
      ['Hello!', '¡Hola!', 'Ni Hao!', 'Bonjour!', 'Namaste!', 
      'Sawasdee Kha!', 'Konnichiwa!'];
  const greetingContainer = document.getElementById('greeting-container');
  const curr = greetingContainer.innerText;
  const greeting = getRandomItem(curr, greetings);

  greetingContainer.innerText = greeting;
}
/**
 * Adds a random greeting to the page.
 */
Adds a random greeting to the page.
Adds a random greeting to the page .
function showRandomGreeting() {
  const greetings =
      ['Hello!', '¡Hola!', 'Ni Hao!', 'Bonjour!', 'Namaste!', 
      'Sawasdee Kha!', 'Konnichiwa!'];
  const greetingContainer = document.getElementById('greeting-container');
  const curr = greetingContainer.innerText;
  const greeting = getRandomItem(curr, greetings);
  greetingContainer.innerText = greeting;
}
function showRandomGreeting ( ) { const greetings = [ 'Hello!' , '¡Hola!', Ni Hao!', Bonjour!', Namaste!', 'Sawasdee Kha!' , 'Konnichiwa!' ] ; const greetingContainer = document . getElementById ( 'greeting-container' ) ; const curr = greetingContainer . innerText ; const greeting = getRandomItem ( curr , greetings ) ; greetingContainer . innerText = greeting ; }
Adds a random greeting to the page.
Adds a random greeting to the page .