Change Language


Follow Navioo On Twitter

%

Divides a number by another number and returns the remainder.

Syntax

numberA % numberB

Example

myModulus = 11 % 2;
//myModulus = 1; 

Remarks

Use % to determine if the value of a variable is even or odd.

text_javascript Navioo_docs

Ajax Javascript feed

↑ Grab this Headline Animator