Math Operators in JavaScript
Math Operators
JavaScript Math Operators or commonly known as arithmetic operators are used to perform various different types of operators. There are two of seven Math operators in javascript which are widely used.
Arithmetic Operators in JavaScript are:-
- Subtraction 10-5 => 5
+ Addition 10+5 => 15
* Multiplication 10*5 => 50
/ Division 10/2 => 5
% Modulus 10%3 => 1
++ Increment a=10,a++=>a=11
-- Decrement a=10,a--=>a=9
For your Information:-
From the above, we can conclude that Modulus (%) will give remainder, increment(++) will increase by 1, and decrement(--) will decrease by 1