perators are how we perform actions on variables and values.
We’ve already seen two JavaScript operators, the = and the *.
The * operator performs mathematic multiplication. Simple enough, right?
The = equals operator is used for assignment—we first calculate the value on the right-hand side (source value) of the = and then put it into the variable that we specify on the left-hand side (target variable).
This may seem like a strange reverse order to
specify assignment. Instead of a = 42, some
might prefer to flip the order so the source value
is on the left and the target variable is on the
right, like 42 -> a (this is not valid JavaScript!).
Unfortunately, the a = 42 ordered form, and
similar variations, is quite prevalent in modern
programming languages. If it feels unnatural,
just spend some time rehearsing that order in
your mind to get accustomed to it.