Javascript conclusion part 2


#1



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.


https://www.codecademy.com/courses/getting-started-v2/4/5?curriculum_id=506324b3a7dffd00020bf661


"SyntaxError: Unexpected token else"


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


#2

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


#3

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