can someone check this for me it works but i feel like i missed something with the eightBall variable, it should look different but i dont know how, thank you everyone for your help much appreciated!!
let userName = ‘Andrew’
userName ? console.log(Hello ${userName}!
)
: console.log (‘Hello!’)
const userQuestion = Where is the butter ${userName}?
console.log(userQuestion)
let randomNumber = Math.floor(Math.random() * 8)
console.log(randomNumber)
let eightBall = ‘’
console.log()
switch (randomNumber) {
case 0:
console.log(‘It is certain’);
break;
case 1:
console.log(‘It is decidedly so’);
break;
case 2:
console.log(‘Reply hazy try again’);
break;
case 3:
console.log(‘Cannot predict now’)
break;
case 4:
console.log(‘Do not count on it’);
break;
case 5:
console.log(‘My sources say no’);
break;
case 6:
console.log(‘Outlook not so good’)
break;
default:
console.log(‘Signs point to yes’);
break;
}