Concatenation
Concatenation involves adding two or more strings together, creating a larger string containing the combined data of those original strings. This is done in JavaScript using the + operator.
var bigStr = 'Hi ' + 'JS strings are nice ' + 'and ' + 'easy to add';
Exercise
Correct!
var firstName = "John";
var lastName = "Smith";
var fullName =
var firstName = "John"; var lastName = "Smith"; var fullName = firstName + " " + lastName;
assert(fullName === 'John Smith');