Javascript conclusion part 2


This is incredibly frustrating. What really gets me is how many other people this has happened to and there's still cases of it popping up. Have a look, let me know what I did and hopefully I can progress past this soon.

"SyntaxError: Unexpected token else"

if (1 + 3 === 2)
    console.log("I finished my first course!") };


When closing if you shouldn't have a semi colon after the bracket. So just close with bracket only }

You should have a semi colon after console.log


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