JavaScript displaying multiple variables in an if/else


#1

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?


#2


#3

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.


#4

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.


#5

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