DEV Community

Discussion on: This simple math hack lets you create an image carousel without any if statements

Collapse
 
jonrandy profile image
Jon Randy 🎖️ • Edited

Wrong. Adding either way works. 3 modulo 3 is zero, as is 6 modulo 3, 9 modulo 3 etc.