Glossary
Syntax error

Syntax error

Syntax error refers to a mistake in code that violates the programming language’s rules and prevents it from executing correctly.

These common mistakes in programming occur when programmers miswrite code by breaking the language's syntax rules, such as using punctuation incorrectly or misspelling commands. When a syntax error occurs, the code will not execute, and an error message typically starting with SyntaxError: invalid syntax — will display in the console and indicate the location of the error in the code. 

You can avoid syntax errors by following the rules and guidelines of your programming language and paying close attention to its syntax. Debugging tools and Integrated Development Environments (IDEs) also help identify syntax errors in code, allowing for easier troubleshooting.

Other glossary terms

Thank you! Your submission has been received!
Oops! Something went wrong while submitting the form.
Hmm…we couldn’t find any results. Try a different search term or reset the filter.
Reset the filter
Load more