What's Wrong? JS 19. math


#1

<PLEASE USE THE FOLLOWING TEMPLATE TO HELP YOU CREATE A GREAT POST!>

Please help me figure out what’s wrong with my code.
<Below this line, add a link to the EXACT exercise that you are stuck at.>
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.

<In what way does your code behave incorrectly? Include ALL error messages.>
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.

<do not remove the three backticks above>

#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