Everyday Calculations
Arithmetic operators power totals, averages, discounts, and time calculations. You use them for almost any numeric work in JavaScript.
The same operators also work with floating-point numbers, so be mindful of precision in money or measurement logic.
- Use `+` for addition and `-` for subtraction.
- Use `*` and `/` for multiplication and division.
- Use `%` for remainders in cycles or indexing.