Concatenation
最后更新于:2022-04-01 03:12:03
# 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
Add up the different names so that the `fullName` variable contains John's complete name.
~~~
var firstName = "John";
var lastName = "Smith";
var fullName =
~~~