What is an expression?
- Expressions always simplify to a single value (only when the line of code is executed)
- Every expression has a single result type
Examples of expressions
Where do we use expressions?
With an assignment operator!
let <name>: <type> = <expression of same type>;
Singular vs Compound Expressions
- Literal values
- Variable Access
- "unary" operators (-)
Compound Expressions -> utilize operators (listed below) and function calls
Also - see the page on conditional operators for more information!