📦primary expression
the simplest expressions. (literal, keyword, variable, global object property)
Last updated
Was this helpful?
the simplest expressions. (literal, keyword, variable, global object property)
Last updated
Was this helpful?
Was this helpful?
JS ⟩ statement ⟩ expression ⟩ primary
an expression that doesn't include any simpler expressions, they are:
// examples
123 // ⭐️ literal
null // ⭐️ keyword (reference)
name // ⭐️ variable (reference)
undefined // ❗️ global object property (reference)
primiary expressions (listed in MDN)
this - property of execution context (environment record, actually).
function - defines a function expression.
- defines a class expression.
defines a generator function expression.
pause and resume a generator function.
delegate to another generator function or iterable object.
defines an async function expression.
- wait for the promise's future value.
define an async generator function expression.
-
-
regular expression literal syntax.
grouping operator.