freeCodeCamp Challenge Guide: Assignment with Minus Equals

freeCodeCamp Challenge Guide: Assignment with Minus Equals
0

#1

Like the += operator, -= subtracts a number from a variable.

myVar = myVar - 5;

will subtract 5 from myVar. This can be rewritten as:

myVar -= 5;

#2