Modulo is used to calculate the remainder of the division of two numbers.
Syntax
number1 % number2
Returns
A number that is the result of applying the modulo operator to number1
and number2
.
Examples
37 % 7 /* results in 2 */
35 % 7 /* results in 0 */