An exception caused by the incorrect use of a pre-defined syntax. Syntax errors are detected while compiling or parsing source code.
For example, if you leave off a closing brace (}) when defining a JavaScript function, you trigger a syntax error.  Browser development tools display JavaScript and CSS syntax errors in the console.
Learn more
General Knowledge
- Syntax error on Wikipedia
- SyntaxErrorJavaScript object
Document Tags and Contributors
    
    Tags: 
    
  
                    
                       Contributors to this page: 
        chrisdavidmills, 
        jonathanKingston, 
        hbloomer, 
        Andrew_Pfeiffer, 
        Sebastianz, 
        klez, 
        kscarfone, 
        panaggio
                    
                    
                       Last updated by:
                      chrisdavidmills,