At the end of the Magic Eight Ball project, I did the “extra practice” of changing my switch statement into if/else if/else statements.
For some reason, the else statement at the end of my if/else if/else expression created an error. I don’t understand why! If I changed else into else if the code works properly. Is there something different about an else statement that means it needs different syntax?
I received this error:
Thank you for your help!