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");


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.


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:


=== outside of parantheres


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