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
JUAN BORRAS716 Points
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)"
You 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.