Division Assignment Operator
+= symbol is used for division assignment operator.
Division assignment operator takes two operands, divides the value in left operand with that of the right operand, and assigns the quotient back to the left operand.
a /= 5 //equivalent to a = a / 5 a /= b //equivalent to a = a / b
5 and assign the quotient back to
var a = 13; a /= 5; console.log(a);
a with value in
b and assign the quotient back to
var b = 7; var a = 16; a /= b; console.log(a);