a statement that evaluates to a value.
Last updated 2 years ago
Was this helpful?
JS ⟩ statement ⟩ expression
(statement) A fragment of code that produces a value.
operator
primary expression
object literal / array literal
- calls a function.
two types of expressions
those that have side effects (such as assigning values)
those that purely evaluate.
you can use an to refer to an object's .
👉
(2020) JavaScript The Definitive Guide, 1.3 A Tour of JavaScript
JavaScript: The Definitive Guide ⟩
1.3 A Tour of JavaScript
Ch. 4:Expressions & Operators
⭐️
Expressions and operators