On 19.Math I have a small problem that I haven't been able to find


#1

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

There is a tiny error of why this isn't working this should be a simple if/else but I'm missing one tiny thing and I need a new pair of eyes.

The goals are to fill in missing pieces of code that I did as best I can and to give the message "Error Error Error"

Any help would be appreciated.


#2

at the end of console.log("Error Error Error") should be a ; not a :


#3

also im sure "(Jon".length 2 / (2+1) === 3) is wrong. jon.length = 3. 32 = 6. 6/(2+1) = 2. there for it doesnt === 3


#4

Thank you for pointing out the colon I put in wrong. I just looked at it for so long I couldn't pick out what was wrong I was just going over the code. Thanks for checking my problem and thank you for your input.

Have a good day