Syntax errors
Browse documented syntax errors, error messages, troubleshooting explanations, and fixes across products, tools, and platforms.
These pages help users compare related error messages, common causes, and how-to-fix steps across different tools that fail in the same way.
Syntax errors are often searched as exact messages or short problem phrases, so this hub is designed to work as both a documentation browse surface and a search landing area.
The pages in this category focus on what the error means, what usually causes it, and which checks help narrow the issue fastest across different products and platforms.
SyntaxError: missing ) after argument list
JavaScript call or expression is missing a closing parenthesisJavaScript
SyntaxError: missing = in const declarationJavaScript const declaration is missing an initializerJavaScript
SyntaxError: duplicate formal argumentJavaScript function declared the same parameter twiceJavaScript
SyntaxError: Unexpected tokenJavaScript parser hit an unexpected tokenJavaScript
SyntaxError: return not in functionJavaScript return statement is outside a functionJavaScript
SyntaxError: string literal contains an unescaped line breakJavaScript string literal contains an unescaped line breakJavaScript
SyntaxError: invalid assignment left-hand sideJavaScript tried to assign to something that is not assignableJavaScript
SyntaxError: await is only valid in async functions, async generators and modulesJavaScript used await outside a valid async contextJavaScript