📦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:
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.yield
pause and resume a generator function.yield*
delegate to another generator function or iterable object.async function
defines an async function expression.await - wait for the promise's future value.
async function*
define an async generator function expression./ab+c/i
regular expression literal syntax.( )
grouping operator.
Last updated