📦primary expression
the simplest expressions. (literal, keyword, variable, global object property)
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.
class - defines a class expression.
function*defines a generator function expression.yieldpause and resume a generator function.yield*delegate to another generator function or iterable object.async functiondefines an async function expression.await - wait for the promise's future value.
async function*define an async generator function expression./ab+c/iregular expression literal syntax.( )grouping operator.
Last updated
Was this helpful?