Getting started with programming 19 math


#1

need help here is my code
("Jon".length * 2 / (2+1) === 3)
if{
console.log("The answer makes sense!");
}
else{
console.log("Error Error Error")
}


#2

Please help me Please Help me I'm so confused


#3

Hi try to move that ("Jon".length * 2 / (2+1) === 3) after the if like that

If ("Jon".length * 2 / (2+1) === 3){}

#4

it now says this
Oops, try again. It looks like 'log' on line 3 was not defined before it was used. This means either you need to define it, 'log' is spelled incorrectly or you need quotes around 'log'


#5

tell me what to do please


#6

i am so confused please help me


#7

Did you put It like this
But Jon length is equal to "3"so 2* 3 = 6
6 / 3 = 2 and 2 === 3 is false.. Here
Try it like this ...

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