Skip to content
JS
JavaScript error

SyntaxError

The JavaScript exception "missing : after property id" occurs when objects are created using the object initializer syntax. A colon (:) separates keys and values for the object's properties.

Reference entryJavaScriptFetched
SyntaxError: Invalid shorthand property initializer (V8-based)
As listed by MDN Web Docs
SyntaxError: missing : after property id (Firefox)
As listed by MDN Web Docs
SyntaxError: Unexpected token '='. Expected a ':' following the property name 'x'. (Safari)
As listed by MDN Web Docs
SyntaxError: Unexpected token '+'. Expected an identifier as property name. (Safari)
As listed by MDN Web Docs
Category
SyntaxError
Severity
error
Runtime
both
or press Cmd/Ctrl + Enter. The text is only sent to this site to match it.
Source: MDN Web Docs. Data fetched 2026-09-25T01:48:37.274Z.