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 trialT Cee
502 PointsUnable to complete Challenge Task 1 of 2
// Enter your c let name = "Dave" let greeting = "Hi there," let interpolatedGreetingName = "(greeting), (name)"
I'm not sure what I'm doing wrong in the above
// Enter your c
let name = "Theresa"
let greeting = "Hi there,"
let interpolatedGreetingName = "\(greeting), \(name)"
Josue Gisber
Courses Plus Student 9,332 PointsFirstly, you're supposed to declare two constant not three and second within the greeting constant is where you interpolate the greeting "Hi there, " with the constant (name) I hope this help.
2 Answers
Brendan Whiting
Front End Web Development Techdegree Graduate 84,738 PointsJosue is right in his comment but maybe it will help to see the code.
let name = "Theresa"
let greeting = "Hi there, \(name)."
Josue Gisber
Courses Plus Student 9,332 PointsWell done Brenda. You know, there's a Chinese proverbial that says: "give a man a fish and you feed him for a day; teach a man to fish and you feed him for a lifetime." So I understand that seeing the code is easier, but helping how to understand the instructions and aply it is better because we won't be with our fellow student every time they need hand.
T Cee
502 PointsThanks, I appreciate it.
Josue Gisber
Courses Plus Student 9,332 PointsJosue Gisber
Courses Plus Student 9,332 PointsFirstly, you're supposed to declare two constant not three and second within the greeting constant is where you interpolate the greeting "Hi there, " with the constant (name) I hope this help.