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
I don't know how to solve these.
Not sure what I did wrong.
// Enter your code below let language = "favDessert" var str = "favDessert" str = "Pie"
David Montalvo6,937 Points
Sorry but I don't get it... Please can you write the complete question so I can help you, because the challenge is asking for one task, but you are doing another one,
The instructions are: "Create a constant named favDessert and assign to it a string containing your favorite dessert. "
let favDessert = "favDessert"
Here favDessert is the constant they asked you to create, and "favDessert" is the string containing your favorite dessert that is being assigned to it.
Sure. You had "favDesert" so I just stuck with it. It doesn't matter, as anything inside double-quotes is a String. The editor would have accepted "xyxyxy"