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 trialJan Francírek
1,766 PointsHello, I would like to ask why when do I write ,,let,, at the beginning is it written with red color. Im stuckd here. :(
I mean like why can't I write it at the beginning ? I do not understand in general writing that here on web. When I'm practicing variables in Xcode there is no problem neither with constants but here on web is everytime some problem so I can't finish it and move to the next step.
1 Answer
Stone Preston
42,016 Pointsthe code challenge editor uses syntax highlighting to highlight keywords of languages, string literals, variable names etc. let is red, that does not mean it is incorrect, it just means its a special keyword of the Swift language.
let language = "Swift"
if you typed the line above into the challenge editr, let will be red, language will be blue-green and "Swift" will be green
Jan Francírek
1,766 PointsJan Francírek
1,766 PointsOk thank you.