![iOS 12 Programming for Beginners](https://wfqqreader-1252317822.image.myqcloud.com/cover/76/36699076/b_36699076.jpg)
上QQ阅读APP看书,第一时间看更新
Creating a variable with a string
First, delete what you have entered in Playgrounds already, and let's declare our first variable, named fullName, and set it to your name:
var fullName = "Craig Clayton"
The preceding code says that we have a variable named fullName and that it is holding a string value of Craig Clayton. Your Results Panel shows your actual name as its data:
![](https://epubservercos.yuewen.com/2E52D1/19470383901517806/epubprivate/OEBPS/Images/553eb323-dda2-4888-8ad1-41a970289422.png?sign=1739296801-qnprnYOFEMEJ5APyIzDkwB00aktjul0Y-0-1154c5649c97fa23a30e91e00d69731e)