Challenge Assignment With Minus Equals - ashish9342/FreeCodeCamp GitHub Wiki

Challenge Assignment with Minus Equals

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

myVar = myVar - 5;

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

myVar -= 5;
⚠️ **GitHub.com Fallback** ⚠️