Codecademy JavaScript Project: Magic 8 Ball

let userName = "Louise";

userName ? console.log(`Hello, ${userName}!`) : console.log('Hello!');

const userQuestion = "Will I succeed big in life?";

console.log(`${userName} asks: ${userQuestion}`);

let randomNumber = Math.floor(Math.random() * 8);

let eightBall = "";

if (randomNumber === 0)
  eightBall = 'Cannot predict now';

  else if (randomNumber === 1) 
    eightBall = 'It is certain';

  else if (randomNumber === 2) 
    eightBall = 'It is decidely so';

  else if (randomNumber === 3)
    eightBall = 'Reply hazy try again';

  else if (randomNumber === 4)
    eightBall = 'Do not count on it';

  else if (randomNumber === 5)
    eightBall = 'My sources say no';

  else if (randomNumber === 6)
    eightBall = 'Outlook not so good';

  else if (randomNumber === 7)
    eightBall = 'Signs point to yes';

console.log(`The magic 8-Ball says: ${eightBall}!`);