Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.Start your free trial
Help: iOS swift development basic/ types; numbers and booleans.
We need store some information about a book in several variables. Let's start with the title of book. Create a constant named title and assign it a string: "A Dance with Dragons".???
Jhoan Arango14,575 Points
Hello Hans :
Assigning values to a constant or variable is simple. Think of it as STORING something inside a word, or giving that word a meaning. The first thing the challenge is asking for is:
"We need store some information about a book in several variables. Let's start with the title of book. Create a constant named title and assign it a string: "A Dance with Dragons".???”
You know that a constant starts with the word let, after this you want to give a name to the constant
In order to give a value to your constant you have to use the equal sign “ = “.
let name =
// the equal sign assigns values
Now, after creating a constant, you must give it ITS value. In this case it will be a STRING
let name = “This will be the value”
I hope this helps you solve your challenge. Now you can go back and give it a try.