GLOSSARY · A WORD, UNPACKED
syntax
the exact rules for how code must be written so the computer can understand it, like grammar rules for a language.
A little more detail
Parentheses, braces, quotes, and keywords must fit the language’s grammar. A syntax error means the engine cannot parse that code into instructions. Fixing the grammar lets the code run, but does not prove that its behavior is correct. Check the reported line and the line immediately before it for unfinished punctuation.
See it in practice
These lessons pair the idea with examples you can change and run.