Getting oriented
Everything is an expression
In Ascent, a block’s value is simply the value of its last statement. That holds for an if, a function body, and the whole program itself.
The last line just is the answer. Its trailing semicolon is optional, like a trailing comma in a list: add one if you like, it changes nothing. But add two at your own peril. Ascent is strict!
Your turn: change the last line to compute something else from apples and pricePerApple, say the total plus a $1 bag fee. Predict the value before you hit run.