function addRandomGreeting() {
  const greetings =
      ["In the whole world no poor devil is lynched, "
        + "no wretch is tortured, in whom I too am not "
        + "degraded and murdered. -Aime Cesaire", 
      "Sometimes we are blessed with being able to choose "
        + "the time, and the arena, and the manner of our "
        + "revolution, but more usually we must do battle "
        + "where we are standing. -Audre Lorde", 
      "He who is reluctant to recognize me opposes me. "
        + "-Frantz Fanon"];

  // Pick a random greeting.
  const greeting = greetings[Math.floor(Math.random() * greetings.length)];

  // Add it to the page.
  const greetingContainer = document.getElementById('greeting-container');
  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 addRandomGreeting() {
  const greetings =
      ["In the whole world no poor devil is lynched, "
        + "no wretch is tortured, in whom I too am not "
        + "degraded and murdered. -Aime Cesaire", 
      "Sometimes we are blessed with being able to choose "
        + "the time, and the arena, and the manner of our "
        + "revolution, but more usually we must do battle "
        + "where we are standing. -Audre Lorde", 
      "He who is reluctant to recognize me opposes me. "
        + "-Frantz Fanon"];
  const greeting = greetings[Math.floor(Math.random() * greetings.length)];
  const greetingContainer = document.getElementById('greeting-container');
  greetingContainer.innerText = greeting;
}
function addRandomGreeting ( ) { const greetings = [ "In the whole world no poor devil is lynched, " + "no wretch is tortured, in whom I too am not " + "degraded and murdered. -Aime Cesaire" , "Sometimes we are blessed with being able to choose " + "the time, and the arena, and the manner of our " + "revolution, but more usually we must do battle " + "where we are standing. -Audre Lorde" , "He who is reluctant to recognize me opposes me. " + "-Frantz Fanon" ] ; const greeting = greetings [ Math . floor ( Math . random ( ) * greetings . length ) ] ; const greetingContainer = document . getElementById ( 'greeting-container' ) ; greetingContainer . innerText = greeting ; }
Adds a random greeting to the page.
Adds a random greeting to the page .
// Pick a random greeting. // Add it to the page.