Lesson

Learn Javascript, Math Operators II, codecademy, Javascript Tutorial

Lesson Summary

In this challenge we go over the modulus operator in javascript. Javascripts modulus operator is denoted by a percent sign (%). This operator will return the remainder in a division problem. This can be helpful when calculating moon phases. This challenge will show how we can calculate a moons phase using modulus. Another good use of the modulus is returning change from a vending machine (etc).

Subscribe To Monthly Newsletter. Chance to Win Monthly Prizes

* indicates required


Share: