Understanding the JavaScript Modulo Operator
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.
Sources
- T2Understanding the JavaScript Modulo OperatorMartin Fowler / Overreacted / Kent C. Dodds / Josh Comeau