📦left-hand side expression
🚧 under construction
JS ⟩ statement ⟩ expression ⟩ operator ⟩ left-hand side ⟩
(operator) ❓🚧
left-hand side expressions
new.target (in constructors) refers to the constructor itself.
new (object creation expression)
an object exposing context-specific metadata to a JavaScript module.
supercalls the parent constructor.spread syntax allows an expression to be expanded in places where multiple arguments (for function calls) or multiple elements (for array literals) are expected.
two types of expressions
those that have side effects (such as assigning values)
those that purely evaluate.
you can use an expression to refer to an object's property.
問:「為何 super, new, new.target, ... 這些稱為 left-hand side expression」❓
答:「...」
Last updated