JavaScript Affectation Operators
This operator allows us to simplify the operation of adding value in a variable and stores the result in the variable itself. This operation is usually written in the following way: x = x +2, using the affectation operation operator can be written into : x+=2, and if the initial value of x=7 then the final value x is 9.
This operator allows us to simplify the operation of adding value in a variable and stores the result in the variable itself. This operation is usually written in the following way: x = x +2, using the affectation operation operator can be written into : x+=2, and if the initial value of x=7 then the final value x is 9.