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 trialSascha Bauml
3,322 PointsChallenge Task 2 of 2 not working. I have the code right in XCODE not working in your IDE
Challenge Task 2 of 2 not working in your IDE works fine in XCODE Please advise. let name = "Sascha" let greeting = "Hi there (name)." let finalGreeting = "(greeting) How are you?"
XCODE Output: "Hi there Sascha. How are you?"
// Enter your code below
let name = "Sascha"
let greeting = "Hi there \(name)."
let finalGreeting = "\(greeting) How are you?"
1 Answer
Richard Lu
20,185 PointsHey Sascha,
I've been seeing this problem arise a few times the pass few days, and it seems that this part:
let finalGreeting = greeting + " How are you?"
has a bug. If you take out the space in " How are you?" at the beginning of the string the issue goes away. Good luck!