Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
9 lines (5 sloc) 192 Bytes

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.