It's the remainder operator and is used to get the remainder after integer division. Lots of languages have it. For example:

10 % 3 // = 1 ; because 3 * 3 gets you 9, and 10 - 9 is 1.

Apparently it is not the same as the modulo operator entirely.

Answer from MarioDS on Stack Overflow
🌐
MDN Web Docs
developer.mozilla.org › en-US › docs › Web › JavaScript › Reference › Operators › Remainder
Remainder (%) - JavaScript - MDN Web Docs - Mozilla
For two values of the same sign, ... which can make them differ by one unit of d. To obtain a modulo in JavaScript, in place of n % d, use ((n % d) + d) % d....
🌐
Josh W. Comeau
joshwcomeau.com › javascript › modulo-operator
Understanding the JavaScript Modulo Operator • Josh W. Comeau
To understand why this works, it's worth remembering our new model for division: we're trying to divide timeElapsed into 3 equally-sized groups, without any fractional or decimal values. The remainder will always be either 0, 1, or 2.
🌐
freeCodeCamp
freecodecamp.org › news › javascript-modulo-operator-how-to-use-the-modulus-in-js
JavaScript Modulo Operator – How to Use the Modulus in JS
November 7, 2024 - The modulo operator in JavaScript, also known as the remainder operator, is used to find the remainder after dividing one number by another.
🌐
Codedamn
codedamn.com › news › javascript
JavaScript Modulo Operator Guide With Examples
June 3, 2023 - The modulo operator, represented by the percentage symbol (%), is a commonly used operator in JavaScript that returns the remainder of a division operation. In other words, it tells you what's left over after dividing two numbers.
🌐
LogRocket
blog.logrocket.com › home › mastering the modulo operator in javascript: a complete guide
Mastering the modulo operator in JavaScript: A complete guide - LogRocket Blog
June 4, 2024 - In those cases, the number that is left over after the division operation is complete is referred to as the remainder. For example, when we divide 10 by three, we get a quotient of three and a remainder of one. We can also write this as 1 (mod 3). In JavaScript, the modulo operator gets the ...
🌐
W3Schools
w3schools.com › js › js_arithmetic.asp
JavaScript Arithmetic
In arithmetic, the division of two integers produces a quotient and a remainder. In mathematics, the result of a modulo operation is the remainder of an arithmetic division.
Find elsewhere
🌐
YouTube
youtube.com › watch
You'll Use This More Than You Think... JavaScript Modulo Operator (In 2 Mins) - YouTube
The remainder operator (%, or modulo, mod) in JavaScript lets you find the remainder of a division between 2 numbers. Perfect for doing obscure maths calcula...
Published   August 1, 2024
🌐
30 Seconds of Code
30secondsofcode.org › home › javascript › math › quotient and remainder of division
Calculate the quotient and remainder of a division in JavaScript - 30 seconds of code
December 28, 2023 - Its purpose is to return a 2-tuple consisting of the quotient and remainder of a division. For example, divmod(8, 3) returns (2, 2) because 8 / 3 = 2 with a remainder of 2. In order to implement divmod() in JavaScript, we can use the built-in Math.floor() function to get the quotient and the modulo operator (%) to get the remainder of the division x / y...
🌐
Educative
educative.io › answers › what-is-the-modulo-operator-in-javascript
What is the modulo operator in JavaScript?
It returns the remainder of two integers that have been divided. ... As the remainder will always be less than the divisor, modulo operators can be very useful in restricting the range of outputs.
🌐
Rip Tutorial
riptutorial.com › remainder / modulus (%)
JavaScript Tutorial => Remainder / Modulus (%)
x % 4 == 0 // true if x is divisible by 4 x % 2 == 0 // true if x is even number x % 2 != 0 // true if x is odd number
🌐
Codingem
codingem.com › home › javascript % operator: an ultimate guide to modulos
JavaScript % Operator: An Ultimate Guide to Modulos - codingem.com
July 10, 2025 - In JavaScript, you can use the % operator to calculate the remainder in division. The % operator is called the modulo operator.
🌐
freeCodeCamp
freecodecamp.org › news › javascript-arithmetic-math-operators-explained
JavaScript Modulo, Division, Remainder and Other Math Operators Explained
January 31, 2020 - JavaScript provides the user with five arithmetic operators: +, -, *, / and %. The operators are for addition, subtraction, multiplication, division and remainder (or modulo), respectively. Addition Syntax a + b Usage 2 + 3 // returns 5 true...
🌐
Reddit
reddit.com › r/programming › understanding the javascript modulo operator
r/programming on Reddit: Understanding the JavaScript Modulo Operator
December 12, 2023 - The post explains the Modulo operator ... how we think about division, emphasizing that it's about dividing a number into equally-sized groups without fractional remainders....
🌐
Career Karma
careerkarma.com › blog › javascript › javascript modulo: a how-to guide
JavaScript Modulo: A How-To Guide | Career Karma
December 1, 2023 - The JavaScript modulo operator returns the remainder of a division sum. To calculate the remainder of a division sum, use the percentage sign (%).
🌐
JavaScript Tutorial
javascripttutorial.net › home › javascript tutorial › javascript remainder operator
JavaScript Remainder Operator
November 15, 2024 - To get a modulo in JavaScript, you use the following expression: ... const mod = (dividend, divisor) => ((dividend % divisor) + divisor) % divisor;Code language: JavaScript (javascript)
🌐
Mimo
mimo.org › glossary › javascript › modulo-operator
JavaScript Modulo Operator: Syntax, Usage, and Examples
The JavaScript modulo operator returns the remainder left over when one number is divided by another. It does not perform rounding or any type of fractional calculation—just a pure remainder. ... In this case, 10 divided by 3 equals 3 with a remainder of 1, so 10 % 3 returns 1. ... Here, ...
🌐
Stack Abuse
stackabuse.com › bytes › integer-division-and-finding-the-remainder-in-javascript
Integer Division and Finding the Remainder in JavaScript
September 6, 2023 - The modulo operation finds the remainder after division of one number by another. In JavaScript, this operation is performed using the % operator. For example, if we divide 10 by 3, the quotient is 3 and the remainder is 1.
🌐
Codecademy
codecademy.com › forum_questions › 53027ed09c4e9df1c70006e1
Javascript, Modulo and if/else | Codecademy
My code: //An example of an if/else statement with modulo in the condition ... if() { console.log(“The first number is even!”); } else { console.log(“The first number is odd!”); } Any help? ... – In order to check if a number is even we divide the number by 2 and if the remainder is zero then the number we just divided is an even number, right? In JavaScript there is a shortcut to a mechanism in its library that does that operation automatically for us.