19 of 28 syntax error even though it seems to be working if then else statement


#1

I'm completing the assignment as instructed and getting the pop-up to say the answer is true, but then after I press okay, then it gives me an error saying "make sure the statement is true" and I can't get to the next lesson.

if ("Jon".length * 2 / (2+1) === 2)

{ confirm
("The answer makes sense!");
}
else
{
confirm("Error Error Error");
}


#2

It is then giving me this error message:


#3

I believe that instead of "confirm", you are supposed to use "console.log".


#4

Thanks! I just did that, and it worked! :smile: