Math


#1

SyntaxError: Unexpected token {
Im struggling trying to get past fixing the cod in this problem
I put the "if" and the { } but it keeps giving this error


#2

Can you post your code?


#3

for sure

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


#4

The if syntax is incorrect, it shouild be

if ( condtion ){
statement;
}

So.. I think what you're looking for is:


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