Tin mới
JavaScript: Scripting language
Web APIs: Programming interfaces
Structuring content with HTML module
Dynamic scripting with JavaScript module
The SyntaxError object represents an error when trying to interpret syntactically invalid code. It is thrown when the JavaScript engine encounters tokens or token order that does not conform to the syntax of the language
SyntaxError.prototype.constructor
The constructor function that created the instance object. For SyntaxError instances, the initial value is the SyntaxError constructor.
The constructor function that created the instance object. For SyntaxError instances, the initial value is the SyntaxError constructor.
This page was last modified on Jul 10, 2025 by MDN contributors.
Portions of this content are ©1998–2026 by individual mozilla.org contributors. Content available under a Creative Commons license.