What is Addition Operator (+) in JavaScript?

JavascriptWeb DevelopmentFront End Technology

The addition operator is used to add two operands.

Example

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

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

         document.write("a + b = ");
         result =a + b;
         document.write(result);
      </script>
   </body>
</html>
raja
Updated on 13-Jun-2020 08:19:52

Advertisements