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!

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) Variables and Constants Variables

what am I sposed to do

what am I sposed to do


1 Answer

Damien Watson
Damien Watson
27,419 Points

Hey Nick,

I haven't done any Swift as yet, but the question says something like :

Create a variable called greeting with the text "Hello', so try...

var greeting = "Hello"

'var' creates a variable, 'let' creates a constant. Cheers. :)

Vittorio Somaschini
Vittorio Somaschini
33,371 Points


This would work also without ";" at the end as Swift does not require it.