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 trialMilos Ribera
9,633 PointsI don't know my error: let finalGreeting = "\(greeting). How are you?"
I created the constant greeting, as a concatenation between a string and another constant.
My steps are: let name = "Myname" let greeting = "Hi there, (name)" -> let finalGreeting = "(greeting). How are you?"
// Enter your code below
let name = "Milos"
let greeting = "Hi there, \(name)"
let finalGreeting = "\(greeting). How are you?"
1 Answer
Mitch Little
11,870 PointsHi!
Your solution to part one of the challenge is correct. Well done! This asks you to use string interpolation which you have done so correctly.
let name = "Milos" let greeting = "Hi there, (name)"
However, in the second part it asks you to use concatenation and you have used interpolation.
let finalGreeting = greeting + "." + "How are you?"
Almost there!
All the best,
Mitch