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
Malthe Pedersen2,338 Points
Swift 2.0 string manipulation
What am I doing wrong?
// Enter your code below let name = "Malthe" let greeting = "Hi there, \(name)." let finalGreeting = "\(greeting) How are you?"
Chris Shaw26,676 Points
Unlike the first part of the challenge which asks you to create an interpolated string, the second part asks that you concatenate
finalGreeting which is achieved by using the plus
+ operator as shown below.
let finalGreeting = greeting + " How are you?"