Stuck on Conclusion 2


#1

Hi! I keep getting an error message saying it looks like log on line 4 was not defined before it was used


if(7>9)
({ 
    console.log ("Wow!");
    })
else
({console.log ("I finished my first course!");
})


#2

Remove the parens from both this clause, and the else.

if (...) {

} else {

}

#3

the if structure in js is

if(condition) {
do something; }

#4

A post was split to a new topic: Making an if / else statement


#5

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