JavaScript Scratches

Arithmetica

Operators

Dealing with digits is done using some familiar (and not so familiar) arithmetic symbols (operators).

Most of these require 2 'literal' numbers or variables to work with.

Literal numbers or variables are called OPERANDS

Addition

Subtraction

Multiplication

Division

Remainder (Modulus)

This is a handy operator if you've not seen or used it. Useful when calculating seconds, minutes, and hours into discrete units. Or miles into feet / yards into inches, etc.

This exercise shows how it's used.