Arithmetic Operators in JavaScript — a practical guide to JavaScript arithmetic operators with clear examples you can reuse in real projects.
JavaScript Tutorial Series (17/101). Prefer one article? Read the complete JavaScript tutorial.
Short description
Watch floating-point quirks (`0.1 + 0.2`).
Arithmetic
const sum = 2 + 3;
const mod = 10 % 3; // 1
const pow = 2 ** 3; // 8