A SyntaxError is thrown if there is a syntax error in the JavaScript code.
ExampleNo example available.