Cant find what's the error


#1

if{ (5+2>10)
console.log("the conditiion is true");
}
else {
console.log("the condition is false");
}

It looks like 'log' on line 5 was not defined before it was used. This means either you need to define it, 'log' is spelled incorrectly or you need quotes around 'log'.


#2

Move your opening curly bracket { after your (if 5+2>10) so it looks like this:

if (5+2>10) {
console.log("the conditiion is true");
}

#3

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