Magic eightball project

I’ve got a couple questions about this project.
Should the final console log print the message or the random number?
I’m using the if else statement.
I also get the final else statement printing to the console as well as the random number.
Any help?

Hi, could you post your code? It’ll be easier to understand the problem.

I changed the verbiage

I would print the eightBall number before the outcome, but that’s just me. Also, you can use switch…case…default instead of if…else if…else.

1 Like