Mega Code Archive

 
Categories / JavaScript Tutorial / Operators
 

Compound assignment operators

Compound assignment operators exist for each of the major mathematical operations and a few others as well: Multiply/Assign (*=) Divide/Assign (/=) Modulus/Assign (%=) Add/Assign (+=) Subtract/Assign (-=) Left Shift/Assign ( Signed Right Shift/Assign (=) Unsigned Right Shift/Assign (=)