0 of 10 problems solved • 0%
Use in a course

Numbers and Arithmetic

10 exercisesEasy

JavaScript uses the familiar arithmetic operators +, -, *, and /, plus % for remainders. Parentheses make the intended order of a multi-step calculation clear.

const itemPrice = 24; const quantity = 3; const discount = 10; const total = itemPrice * quantity - discount; console.log(total); // 62

You’ll translate everyday calculations into code, store intermediate results under useful names, and update values such as balances and totals. The goal is not just the right answer, but a calculation another reader can follow.