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.
原文:https://www.a8q9.cn/en/article/understanding-the-javascript-modulo-operator-9dd43c.html