🔑contextual keyword
🚧 施工中
Last updated
🚧 施工中
Last updated
JS ⟩ grammar ⟩ keyword ⟩ contextual keyword
keyword that can/cannot be used as identifier in some contexts.
contextually allowed as identifier: (2)
await
- reserved only inside async functions and modules.
yield
-
contextually disallowed as identifier, in strict mode code:(8)
static
, implements
, interface
, package
, private
, protected
, public
.
mostly allowed as identifier, but also appear as keywords within certain syntactic productions, at places where identifier is not allowed:(8)
as
, from
, get
, meta
, of
, set
, target
.
await, yield are reserved word and contextual keywords at the same time.
NaN
, Infinity
, and undefined
are:
not reserved keywords.
immutable & read-only properties of the global object.
JavaScript does not throw any errors if you declare them in the global scope.