The remainder operator calculates the remainder if the first operand is divided by the second operand. In other languages, this is sometimes referred to as the modulo or modulus operator.
Here is a prototype:
varA % varB
Here is an example:
var x = 10 % 3 //x will equal 1 var x = 10 % 2.6 //x will equal 2.2