how to use modulus in java script code example
Example 1: javascript division get remainder
var y=11;
var x=4;
var quotient = Math.floor(y/x); //2
var remainder = y % x; //3
Example 2: javascript modulo
x = a % b // % is modulo
var y=11;
var x=4;
var quotient = Math.floor(y/x); //2
var remainder = y % x; //3
x = a % b // % is modulo