Syntax Error
noun
say it: “SIN-taks AIR-er” /ˈsɪntæks ˈɛrər/
An error that means JavaScript can't read the code (or the JSON) because it breaks the language's rules, such as a missing bracket or an extra comma.
What is Syntax Error in JavaScript?
Syntax Error — An error caused by code that does not follow JavaScript's grammar.
In a sentence
- “A missing closing quote gave me a syntax error, and none of the file ran, not even the first line.”
- “I got a SyntaxError because the saved text used single quotes, and JSON only accepts double quotes.”
Level: Novice · More JavaScript terms at this level
Updated