Arithmetic operators carry out mathematical calculations on numbers, whether they’re directly written values or stored in variables.
|
Operator |
Description |
|
+ |
Addition |
|
– |
Subtraction |
|
* |
Multiplication |
|
** |
Exponentiation (ES2016) |
|
/ |
Division |
|
% |
Modulus (Remainder) |
|
++ |
Increment |
|
— |
Decrement |