String interpolation

In order to correct that, we can put these variables inside of quotes, which is known as string interpolation, using a backslash and parentheses around each of our variables inside of the string interpolation. Let's update our name variable to be the following, and you will see the space in the name in the Results panel:

let full = "\(firstName) \(lastName)"

After adding the line our code should look something like this:

Now that we know about using variables inside of quotes, we can do the same inside of print(). Let's put the firstName and lastName inside of print(), as follows:

print("\(firstName) \(lastName)")

The print statements are great for checking to see you are getting the value you want:

Bam! Now, we have a way to see multiple variables inside of print() and to create string interpolation by combining multiple strings together. We can do much more with Strings, and we will cover them later in the book.