Math


#1


Getting started with Programming, Math


The program shows the error > SyntaxError: Unexpected token .


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


#2

You haven't put a closing bracket on your if statement and you mustn't have any text or values in between the parentheses or curly braces like you do with "===".
That should cover it.


#3

I am in the same section and I am getting SyntaxError: Syntax Error. This is my third time starting JavaScript, I feel like I am missing something :confused:


#4

=== outside of parantheres


#5

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.