Please enable JavaScript to use CodeHS

CodeHS Glossary


Modulus operator General

The modulus operator (written as % in most programming languages) divides two numbers and returns the remainder. For example, ```10 % 3``` will result in 1, because 3 goes into 10 3 times with 1 left over. 1 is the remainder.