Evaluation
layout: default title: Expression Evaluation: The Result
When an expression is executed, it will evaluate to a single value, the result.
evaluate¶
execute an operator with its operands and arrive at a result
| Operator | Result |
|---|---|
| Arithmetic operators | number |
| Relational operators | boolean (true or false) |
| Logical operators | boolean |
| Assignment operators* | the value assigned |
* Explained in Assignment Expressions
Evaluating is about getting a result.
* Evaluating 3 + 5 results in 8.
* Evaluating 3 < 5 results in true.
* Evaluating 3 < 5 and 10 < 7 results in false.