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 trialManuel Costa
2,198 PointsI can't pass the challenge after this video. how can I see the solution in order to understand my error?
That is what I have done. let FavDesserts = "FavDesserts" str = "Chocolate Cake"
2 Answers
David Papandrew
8,386 PointsHere's the solution:
let favDessert = "Chocolate Cake"
Note the challenge asks for the constant to be singular, e.g. "favDessert" not "favDesserts". The challenge also probably wants camel case, so lowercase for the start of the constant name (this is standard Swift practice anyway, so might as well get in the habit).
tmsmth
10,543 PointsI think you should rewatch the video and see how he assigns a value to a variable. What you've done there is that you created two constants, FavDesserts and str, and you gave them respectively the value "FavDesserts" and "Chocolate Cake".
But you only need to create one called FavDesserts and assign it the name of your favorite dessert, which is probably Chocolate Cake