Welcome to the Treehouse Community
Looking to learn something new?
Mark Cai1,505 Points
Challenge Task 2 of 2 is broken. The code works good when tested in actual playground.
Challenge is broken. My code works fine in playgrounds. There's probably an issue with the "Check Work" button
// Enter your code below let name = "Mark" let greeting = "Hi there, \(name)" let finalGreeting = "\(greeting). How are you?"
David Papandrew8,386 Points
Step 2 wants you to use string concatenation. You are using string interpolation. This is why it is not passing.
Concatenation is when you use the + operator to combine two or more strings.
Here is the corrected code (it will pass):
let name = "Mark" let greeting = "Hi there, \(name)" //interpolated string let finalGreeting = greeting + "How are you?" //concatenated string