Stuck on JavaScript 19.Math - seems correct, but getting error


#1

I'm getting the error message "Oops, try again. Make sure your if/else statement evaluates to true!"
However, when I save and submit the code, It DOES evaluate to "true!".

Here's the unedited code:

("Jon".length * 2 / (2+1) === )
{
console.log("The answer makes sense!");
}
else

Here are the task instructions:
"Complete the missing bits of code to construct the if / else statement. Make the condition evaluate to true.
Finish the else statement by printing out the string "Error Error Error" to the console."

Here is my code:

if ("Jon".length * 2 / (2+1) === 2)
{
    console.log("true!");
} 
else 
{
    console.log("Error Error Error");
}

And here is the hint I'm getting:
"There is a lot of left out syntax. The if keyword and the { } after the else keyword are all left out.

Make sure not to delete any of the provided code. It could cause your code to fail!"

What am I doing wrong? What is left out of my syntax?

Thanks!


#2

I would first try reloading/refreshing your web page.


#3

Thanks. Tried it, but it didn't help.


#4

Okay, next thing... put back the default code for the true response. It was:

The answer makes sense!

#5

Thanks!
That worked!