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 2.0 Basics Swift Types String Manipulation

What is the correct answer? I've tried lots of different code, and none of them have worked.

Is there a way to see the answers to these little quizzes that you take after the videos? I'm really trying to understand what and the answer is what it is. Instead, i'm getting frustrated becasue I don't know what the answer is and there is no way to solve it on my own.

2 Answers

Adam Hayman
Adam Hayman
767 Points

Figured it out! The answer looks like this:

let name = "Coleman"

let greeting = "Hi there, \(name)."
Adam Hayman
Adam Hayman
767 Points

I wish they would have explained that you don't need to add the backslash and parenthesis to it though.

I agree, that's the only reason I was getting it wrong! Thanks for your help!