Code-Samples/javascript/10.4_operators_code.html

JavaScript Operators

The + operator concatenates (adds) strings.

var string1 = "This is a dog";
var string2 = "and this is a cat.";
var txt = string1 + " " + string2;

txt variable contains :