Question 19 Need assistance


#1

I can't figure out what is wrong with my code. Help please.
if ("Jon".length * 2 / (2+1) === 2 )
{
console.log("The answer makes sense!");
}
else
{
console.log("error error error");


#2

You're missing a '}' after the last line.


#3

What I used to complete this one is:

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

You are indeed missing a } at the end of you code. Also you are logging "error error error" and not "Error Error Error". Easiest way is to just copy paste what Codecademy wants you to log.


#4

Great. Thanks this was helpful. I forgot the 2 on line 1 :confused: