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.

A new way to learn and to build for the web

Get the best, coolest, and latest in design and no-code delivered to your inbox each week.

Shoot, something didn't work. Try again later, bud.