Subtracts the value of the second item from the first item and assigns the total to the first item as a new value.
Syntax
valueA -= valueB
Example
var foo = 7;
var bar = 3;
foo -= bar; //now foo = 4;
Remarks
"valueA -= valueB" is shorthand for "valueA = valueA - valueB".