What is Addition Operator (+) in JavaScript?


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>

Updated on: 13-Jun-2020

169 Views

Kickstart Your Career

Get certified by completing the course

Get Started
Advertisements