function addRandomFacts() {
  const facts =
      ['\'Wait for it...legendary\'', '\'Talent wins games, but teamwork and intelligence wins championships\'', 
      'Fact: I love sports, I practiced Taekwondo for 10 years', '\'Suit up\'', 'Fact: I have 3 dogs'];

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

  // Add it to the page.
  document.getElementById('random-fact-container').innerText = random;
}
/**
 * Adds a random facts to the page.
 */
Adds a random facts to the page.
Adds a random facts to the page .
function addRandomFacts() {
  const facts =
      ['\'Wait for it...legendary\'', '\'Talent wins games, but teamwork and intelligence wins championships\'', 
      'Fact: I love sports, I practiced Taekwondo for 10 years', '\'Suit up\'', 'Fact: I have 3 dogs'];
  const random = facts[Math.floor(Math.random() * facts.length)];
  document.getElementById('random-fact-container').innerText = random;
}
function addRandomFacts ( ) { const facts = [ '\'Wait for it...legendary\'' , '\'Talent wins games, but teamwork and intelligence wins championships\'' , 'Fact: I love sports, I practiced Taekwondo for 10 years' , '\'Suit up\'' , 'Fact: I have 3 dogs' ] ; const random = facts [ Math . floor ( Math . random ( ) * facts . length ) ] ; document . getElementById ( 'random-fact-container' ) . innerText = random ; }
Adds a random facts to the page.
Adds a random facts to the page .
// Pick a random greeting. // Add it to the page.