28, what am I missing?


#1
var myVar = 7
if (console.log(myVar > 3))
{
    console.log("I finished my first course!");
}
else 
{
    console.log("I finished my first course!");
}

#2

You have a console.log() IN your IF statement. That needs to be removed.

What goes into the parentheses () after the IF is the evaluation. You don't need the console.log to evaluate. Remove that, and leave the myVar > 3, and it will work properly.

I would change one of the console.logs after that to say something different than the other one, tho. Just so you know which one is evaluating. Technically, the code will pass with it that way, but then you won't know whether it was the IF that logged or the ELSE. So to speak, anyway. As I said, not necessary for this to function, tho.

Hope this helps!


#3

thanks smondaca,

that did the trick!