# 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](https://www.ask-codey.com/glossary?category=javascript&level=1)

Updated: November 9, 2026

Source: https://www.ask-codey.com/glossary/syntax-error
