GLOSSARY · A WORD, UNPACKED
expression
a piece of code that produces a value (like `2 + 2`).
A little more detail
A literal, a variable read, an arithmetic calculation, and a function call can all be expressions. Expressions can be combined inside a larger expression. Some expressions also change state, such as an assignment, so “produces a value” does not mean “has no side effects.”
See it in practice
These lessons pair the idea with examples you can change and run.