What's Wrong? JS 19. math


#1



Please help me figure out what's wrong with my code.

EXERCISE:
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.


My code:

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


Replace this line with your code.


#2

I think that after your ===, you need the answer to your equation.


#3

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

Reasoning: jon = 3 letters * 2 = 6 letters, 2+1 = 3 and it asks you to do 6 / 3 which is 2. This is if you want the true value to come out if you want the false value you just put any number except a 3 as far as i see