String

The first data type we will cover is a string. A series of characters represent a string. Strings are used to display text in an app. A string wrapped in quotes is known as a string literal. In programming, we cannot just add text to Playgrounds. So, to write a string, we must wrap our string inside quotes.

Let's add our name into Playgrounds, wrapped in quotes:

In Playgrounds, your values appear inside of your Results Panel. So, we now know that in order to create a string, we need to use quotes.