String Concatenation

The add operator can be used to add to strings.

Example:

console.log('hi' + 'ya'); // Prints 'hiya'

Example:

console.log('One' + ', ' + 'two' + ', ' + 'three!');

Last updated