Let's quickly recap what we did last time.
Engagement Message
Ready to jump in?
So last time, we saw how to add values stored in variables, like:
let totalScore = score1 + score2;
Engagement Message
If score1
was 50 and score2
was 25, what value ended up in totalScore
?
Great! Besides adding (+
), JavaScript can also do subtraction using the minus sign (-
).
If you have:
Engagement Message
What value do you think remainingCoins
holds?
JavaScript uses the asterisk (*
) for multiplication. It works just like you'd expect.
Example:
Engagement Message
How many totalApples
would there be?
