Skip to content

Challenge Assignment with Minus Equals

SaintPeter edited this page · 1 revision
Clone this wiki locally

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;

Something went wrong with that request. Please try again.