What is Addition Assignment Operator (+=) in JavaScript?

JavascriptWeb DevelopmentFront End Technology

It adds the right operand to the left operand and assigns the result to the left operand.


You can try to run the following code to learn how to work with Addition Assignment Operator −

         var a = 33;
         var b = 10;

         document.write("Value of a => (a += b) => ");
         result = (a += b);
Published on 19-Jan-2018 05:40:20