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

Create a variable named greeting and assign it a value of "Hello".

u

4 Answers

when i write in xcode it is ok there is no error bt when i am answering treehouse quiz there is an error... i cant understand where is the error come from

Vittorio Somaschini
Vittorio Somaschini
33,371 Points

Hello abdiaziz ali can you please paste all your code here?

ty

Taylor Smith
seal-mask
.a{fill-rule:evenodd;}techdegree seal-36
Taylor Smith
iOS Development Techdegree Graduate 14,153 Points

abdiaziz ali , the challenges are pretty specific in the answers they are looking for. Make sure your code, even your strings (the words within the parentheses) are formatted exactly like the question asks. Although your code may be technically correct, they won't pass you through if, for example, the "Hello" for your string is not capitalized like it is in the question. If it still doesn't work... please copy and paste the exact code you are trying to pass through and we can see if we can fix it