What is Multiplication Assignment Operator (*=) in JavaScript?

JavascriptWeb DevelopmentFront End Technology

Multiplication Assignment Operator (*=)multiplies the right operand with the left operand and assigns the result to the left operand.

Example

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

<html>
   <body>
      <script>
         var a = 33;
         var b = 10;

         document.write("Value of a => (a *= b) => ");
         result = (a *= b);
         document.write(result);
      </script>
   </body>
</html>
raja
Published on 19-Jan-2018 05:23:10
Advertisements