![]() |
VOOZH | about |
JavaScript addition (+) operator is one of the most fundamental and widely used arithmetic operators in JavaScript. It is used to perform arithmetic addition on numbers but also concatenate strings.
a + bWhere -
Return Type: It returns the sum/concatenation of numbers/strings.
Example 1: In this example, we will use the addition operator on some primitive data types and check their equivalent sum.
3 NaN 2 1
Example 2: In this example, we will use the addition operator to perform concatenation
12 Hello Geek
We have a complete list of Javascript Arithmetic operators, to check those please go through this JavaScript Arithmetic Operators article.