Learn Javascript, Math Operators II, codecademy, Javascript Tutorial

Channel:
Subscribers:
8,020
Published on ● Video Link: https://www.youtube.com/watch?v=MyniYzzr-iM



Duration: 4:12
325 views
6


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).







Tags:
introduction javascript
javascript introduction
javascript math operators
javascript modulus