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
Patrick MitchellCourses Plus Student 1,104 Points
I keep seeing "Make sure the value you are assigning to greeting is an interpolated string" but its correct on Xcode.
I keep getting an error message saying "Make sure the value you are assigning to greeting is an interpolated string" but I am following all the steps to create an interpolated string. I put my work in on Xcode and it came out fine. here is what I am doing
let name = "Patrick" let greeting = "Hi there," let interpolatedGreeting = "(greeting) (name)"
// Enter your code below let name = "Patrick" let greeting = "Hi there" let interpolatedGreeting = "\(greeting) \(name)"
Justin HornerTreehouse Guest Teacher
You're very close! The challenge wants you to assign the interpolated string to the greeting variable, so it expects the value of the greeting variable to equal "Hi there, Patrick".
To complete the challenge, remove the interpolatedGreeting variable and assign the interpolated string to the greeting variable instead. Also, don't forget the comma after "there"!
I hope this helps.