Understanding the JavaScript Modulo Operator

from blog Josh Comeau's blog, | ↗ original
↗ original
One of the most commonly-misunderstood operators is Modulo (%). In this tutorial, we'll unpack exactly what this little bugger does, and learn how it can help us solve practical problems.