The Addition Operator (+)
Concatenation
let text1 = "Good";
let text2 = "Morning";
let text3 = text1 + " " + text2;
Try it Yourself »
Description
The addition (+) operator returns the sum of two numbers.
The addition (+) operator can also return the sum (concatenation) of two strings.
Learn More:
Browser Support
+
is an ECMAScript1 (JavaScript 1997) feature.
It is supported in all browsers:
Chrome | Edge | Firefox | Safari | Opera | IE |
Yes | Yes | Yes | Yes | Yes | Yes |