Arithmetic and assignment operator
There are different types of Operators in JavaScript. Arithmetic operator are in the bellow:
| Operator | Description |
|---|---|
| + | Addition |
| – | Subtraction |
| * | Multiplication |
| ** | Exponentiation |
| / | Division |
| % | Modulus (Remainder) |
| ++ | Increment |
| — | Increment |
Different kinds of Arithmetic Operator.
6+3 // Addition Operator 9 5-3 // Subtraction Operator 2 5*3 // Multiplication Operator. 15 5/3 // Division 1.6666666666666667 8%3 // Modulus (Remainder) Operator 2 var num = 10; undefined ++num // Increment Operator 11 num++ //Post Increment Operator. 11 num-- // Post Decrement Operator. 12 --num // Pre-derement Opprentor 10



