JavaScript displaying multiple variables in an if/else

I’m not sure why but the code I wrote is passing according to the lesson but it isn’t functioning correctly. Any ideas why?

Semicolons end statements. You have ended your if/else statement right after the word else. This means that your second console.log is not included in the if/else statement but instead comes after it.

You probably nailed it. I may go back and check it out later. Those semi-colons are killing me. I appreciate your help my friend.

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.