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

iOS Swift Basics (retired) Types Numbers

need answer to types numbers task 1 of 3

beginners last challenge

numbers.swift

2 Answers

Christopher Augg
Christopher Augg
21,223 Points

Jonathan,

The instructions state, "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'."

Do you recall how to create a constant in Swift?

We use the let keyword before the name of our variable. We can then use the assignment operator = to assign the String provided by the instructions. Therefore, we start with:

       let title  

Can you complete the rest? I bet you got this now.

Regards,

Chris

thanks