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.
More Related Contents:
- What characters are valid for JavaScript variable names?
- Repeat a string in JavaScript a number of times
- How can I remove a character from a string using JavaScript?
- How to check if character is a letter in Javascript?
- Javascript: Move caret to last character
- Trying to capitalize the first character in array of strings, why this is not working?
- Only allow certain characters to be entered in html textinput
- Unicode string with diacritics split by chars
- Benefits of using `Object.create` for inheritance
- How can I simulate a click to an anchor tag?
- Prevent safari loading from cache when back button is clicked
- javascript: Clear all timeouts?
- Is there a callback on completion of a CSS3 animation?
- Initializing select with AngularJS and ng-repeat
- Load local JSON file into variable
- How to change browser focus from one tab to another
- What does href expression do?
- Angular.JS: views sharing same controller, model data resets when changing view
- Fire tab keypress event in JavaScript?
- jQuery ajax return value [duplicate]
- How to inject CSS into webpage through Chrome extension?
- Pure JavaScript fade in function
- How to fix ‘TypeError: Cannot call method “getRange” of null’ in Google Apps Script
- window.getSelection() of textarea not working in firefox?
- Getter/setter on javascript array?
- Webstorm: “Cannot Resolve Directory”
- Using “await” inside non-async function
- Why does the radix for JavaScript’s parseInt default to 8?
- Why does the jQuery JSON parser need double escaping for backslashes?
- How to implement a “function timeout” in Javascript – not just the ‘setTimeout’