The add operator can be used to add to strings.
Example:
console.log('hi' + 'ya'); // Prints 'hiya'
console.log('One' + ', ' + 'two' + ', ' + 'three!');
Last updated 1 year ago