freeCodeCamp/guide/english/certifications/javascript-algorithms-and-d.../basic-javascript/finding-a-remainder-in-java.../index.md

11 lines
352 B
Markdown
Raw Normal View History

2018-10-12 19:37:13 +00:00
---
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 -->