The Seven Operators
Both languages share the same arithmetic toolkit:
+ add · - subtract · * multiply · / divide
% modulo, the remainder after division
** exponent, raise to a power
// (Python), floor division, dropping the remainder. JavaScript writes it Math.floor(a / b).
✦ Where modulo shows up
Even/odd checks (n % 2), rotating through drum patterns, wrapping around a clock, alternating row colors in a table. Remainders are everywhere once you see them.
Mark this lesson complete
Signed in, your progress follows you to every device.