Computer Science / Unit 7 CS 0367 short lesson, about 20 seconds
The Expression
Captions available
The idea
An expression is a language construct that evaluates values, built from operators — unary taking one operand, binary two, ternary three — under precedence rules dictating order of operations.
In practice
One line computing a discounted price is operators and operands negotiating by rank.
Where people slip
Precedence differs at the edges across languages; check the exceptions.
Your place on the trail
Every lesson rests on earlier ones and opens later ones. Tap any to jump.
Builds on
Unlocks
Something wrong in this lesson? Flag it · Sources for Computer Science