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 trialmark hengstebeck
1,119 PointsThis task is working fine in Xcode, although, in the task window it is a bummer. What am I missing here?
// Enter your code below
let name = "Mark"
let greeting = "Hi there,"
let interpolatedGreetingName = "(greeting) (name)"
// Enter your code below
let name = "Mark"
let greeting = "Hi there,"
let interpolatedGreetingName = "\(greeting) \(name)"
Justus Aberson
1,035 Pointsthere needs to be a forward slash for name but it isn't showing it for a weird reason.
1 Answer
mark hengstebeck
1,119 PointsThanks Justus, That's it! let name = "Mark" let greeting = "Hi there, (name)" I would call this a combination of a concatenated and an interpolated string. Mark
Justus Aberson
1,035 PointsJustus Aberson
1,035 PointsHi Mark, what you've done is in code right, but it's extra what you did. What your code should look like: let name = "Mark" let greeting = "Hi there, (name)" as you can see, with every name you'll pass in, you say "Hi there," so there's no point to make a constant of "Hi there," I hope I explained it right, if you still don't understand make sure to leave a comment!