Modulo Operator Quiz
Multiple Choice Easy
Question
What is the result of `17 % 5`?
Hint
17 divided by 5 is 3 with a remainder.
Explanation
The % (modulo) operator returns the remainder after division. 17 ÷ 5 = 3 with remainder 2 (because 5 × 3 = 15, and 17 - 15 = 2). So 17 % 5 = 2. Modulo is commonly used to check for even/odd numbers (n % 2 === 0 means even).
Related Resources
Related Lessons
- Numbers and Math
Learn about numbers and math operations.
Look up unfamiliar terms
A beginner-friendly glossary explains jargon in plain English — variables, functions, DOM, Promise, and more.
Decode error messages
Plain-English explanations of common errors — what they mean, why they happen, and how to fix them.
Build real projects
Apply what you learned by building guided projects with starter code and solutions.