The Remainder Operator %
Description
The remainder (%) operator returns the remainder after the first operand is divided by the second operand.
It always takes the sign of the first operand.
See Also:
Arithmetic Operators (+ - * /)
The Exponentiation Operator (**)
The Remainder Operator (%)
The Increment Operator (++)
The Decrement Operator (--)
Browser Support
%
is an ECMAScript1 (JavaScript 1997) feature.
It is supported in all browsers:
Chrome | Edge | Firefox | Safari | Opera | IE |
Yes | Yes | Yes | Yes | Yes | Yes |