Thanks to visit codestin.com
Credit goes to www.tutorialspoint.com

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: 2020-06-13T08:19:52+05:30

263 Views

Kickstart Your Career

Get certified by completing the course

Get Started
Advertisements