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:

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.149.213.97