SyntaxError
Compile-time The code is not written according to the language rules — the parser cannot understand it at all.
Detected by the interpreter/compiler before the code runs. The program never starts.
// Python
print("Hello"
↑ SyntaxError: unexpected EOF — missing closing parenthesis
// JavaScript
const x = {name: "Alice" age: 30}
↑ SyntaxError: missing comma - Missing parenthesis, bracket, or semicolon
- Misspelled keyword (`funtion` instead of `function`)
- Mismatched quotes or brackets
- Invalid indentation in Python