A SyntaxError means you wrote code with an invalid structure:
if (x > 5 // SyntaxError: missing ) after condition
console.log("big")
Common causes include missing parentheses, brackets, or quotes. The error points to where JavaScript got confused, which is sometimes after the actual mistake. If the line looks correct, check the line above it. A missing character there often causes errors on the next line.