![iOS 12 Programming for Beginners](https://wfqqreader-1252317822.image.myqcloud.com/cover/76/36699076/b_36699076.jpg)
上QQ阅读APP看书,第一时间看更新
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:
![](https://epubservercos.yuewen.com/2E52D1/19470383901517806/epubprivate/OEBPS/Images/0a584218-d9bb-4d14-a171-3653e522bf6c.png?sign=1738979693-cWBF6fnNIp8v7I7VrPcuxl1ICjXW7iud-0-020a70e6912a6415015207f80786d4e6)
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.