There are also modified versions of the assignment (=
) operator that
perform a mathematical calculation as part of the assignment. Here, we are
using +=
to add 2
to a value and assign it to a var
in one step.
You can learn more about this in:
Tags: