Returns the remainder of a division problem.
// MOD returns the remainder of a division problem var x=10; var y=3; console.log(x%y);
| Name | Type | Required? | Description |
|---|---|---|---|
| x | Number | The dividend of the division, the number being divided. | |
| y | Number | The divisor of the division, the number x is being divided by. |
Found a bug in the documentation? Let us know at documentation@code.org