So I’m wrapping up the eight ball section and I can’t get the last console.log to return the correct value:
var randomNumber = Math.floor(Math.random() * 8);
var eightBall = '';
switch (randomNumber){
case 0:
eightBall = 'Try Again'
break;
case 1:
eightBall = 'It is certain'
break;
case 2:
eightBall = 'It is decidedly so'
break;
case 3:
eightBall = 'Reply hazy try again'
break;
case 4:
eightBall = 'Cannot predict now'
break;
case 5:
eightBall = 'Do not count on it'
break;
case 6:
eightBall = 'My sources say no'
break;
case 7:
eightBall = 'Outlook not so good'
break;
case 8:
eightBall = 'Signs point to yes'
break;
}
console.log('The eight ball answered: ${eightBall}');
If I copy and paste that last console.log from the hint it does it all correctly, but when I type it out it just stays a string. Is there something I’m missing?