⚙️ Arithmetic Operators
Last Updated: 09 Oct 2025
They perform basic math on numbers (Number type in JS).
Hinglish Tip 🗣: Ye basic maths tools hain — plus, minus, multiply, divide, power, remainder, etc.
🗂 List of Arithmetic Operators
| Operator | Name | Example | Result |
|---|---|---|---|
| + | Addition | 5 + 3 | 8 |
| - | Subtraction | 10 - 4 | 6 |
| * | Multiplication | 4 * 3 | 12 |
| / | Division | 7 / 2 | 3.5 |
| % | Modulus (Remainder) | 7 % 2 | 1 |
| ** | Exponent (Power) | 2 ** 3 | 8 |
✏ Syntax & Mini Examples
let a = 5;
let b = 4;
console.log(a + b); // 9
console.log(a - b); // 1
console.log(a * b); // 20
console.log(a / b); // 1.25 (division → float)
console.log(a % b); // 1 (remainder)
console.log(a ** b); // 625 (power)