function addRandomFact(){
  const facts =
      ['I love chocolate!', 'I am Bilingual (Spanish and English)', 'I was a soccer goalie for 5 years.', 
      'I am a Capricorn :)', 'Purple is my favorite color.', 'I LOVE Disney! Tangled is my favorite.',
      'My sister and I have a 6 year age difference.', 'I have a doggy named Roky.', 
      'I like to listen to Jhene Aiko and Bruno Mars.'];

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

  // Add it to the page.
  const factContainer = document.getElementById("fact-container");
  factContainer.innerText = fact;
}
//Adds a random fact to the page.
Adds a random fact to the page.
Adds a random fact to the page .
function addRandomFact(){
  const facts =
      ['I love chocolate!', 'I am Bilingual (Spanish and English)', 'I was a soccer goalie for 5 years.', 
      'I am a Capricorn :)', 'Purple is my favorite color.', 'I LOVE Disney! Tangled is my favorite.',
      'My sister and I have a 6 year age difference.', 'I have a doggy named Roky.', 
      'I like to listen to Jhene Aiko and Bruno Mars.'];
  const fact = facts[Math.floor(Math.random() * facts.length)];
  const factContainer = document.getElementById("fact-container");
  factContainer.innerText = fact;
}
function addRandomFact ( ) { const facts = [ 'I love chocolate!' , 'I am Bilingual (Spanish and English)' , 'I was a soccer goalie for 5 years.' , 'I am a Capricorn :)' , 'Purple is my favorite color.' , 'I LOVE Disney! Tangled is my favorite.' , 'My sister and I have a 6 year age difference.' , 'I have a doggy named Roky.' , 'I like to listen to Jhene Aiko and Bruno Mars.' ] ; const fact = facts [ Math . floor ( Math . random ( ) * facts . length ) ] ; const factContainer = document . getElementById ( "fact-container" ) ; factContainer . innerText = fact ; }
Adds a random fact to the page.
Adds a random fact to the page .
// Pick a random fact. // Add it to the page.