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 trialJUAN BORRAS
716 PointsHelp please
isn´t this the answer to a String Interpolation combining a string Concatenation, being the answer Hi there, Joan?
// Enter your code below
let name = "Joan"
let greeting = "Hi there,"
let interpolatedGreetingName = "\(greeting) \(name)"
2 Answers
andren
28,558 PointsYou do end up with the string the challenge is looking for, but the challenge wants that string stored in the greeting
constant. It does not ask you to create a separate constant to hold it.
So if you do the interpolation within the string you store in greeting
, like this:
let name = "Joan"
let greeting = "Hi there, \(name)"
Then your code will be accepted.
JUAN BORRAS
716 PointsThanks Andren for your help