11 lines
352 B
Markdown
11 lines
352 B
Markdown
|
---
|
||
|
title: Finding a Remainder in JavaScript
|
||
|
---
|
||
|
# Finding a Remainder in JavaScript
|
||
|
|
||
|
The remainder operator `%` gives the remainder of the division of two numbers.
|
||
|
|
||
|
var remainder = 11 % 3; //remainder gets the value 2
|
||
|
|
||
|
<!-- The article goes here, in GitHub-flavored Markdown. Feel free to add YouTube videos, images, and CodePen/JSBin embeds -->
|