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 trial

iOS Swift 2.0 Basics Swift Types String Manipulation

Unable 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

strings.swift
// Enter your c
let name = "Theresa"
let greeting = "Hi there,"
let interpolatedGreetingName = "\(greeting), \(name)"

Firstly, 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.

Firstly, 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

Josue is right in his comment but maybe it will help to see the code.

let name = "Theresa"
let greeting = "Hi there, \(name)." 

Well 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.

Thanks, I appreciate it.