Welcome to the Treehouse Community
Looking to learn something new?
Joanna FilipowskaCourses Plus Student 419 Points
Is it correct: let name = "\(Joanna)" let greeting = "\(Hi), \( ), \(there), \(,), \( ), \(Joanna), \(.)"
Is it correct?
let name = "(Joanna)" let greeting = "(Hi), ( ), (there), (,), ( ), (Joanna), (.)"
// Enter your code below
Zachary Kaufman1,463 Points
No you definitely do not need () everywhere in any string ever. The only time you need () is when you are pulling in information from somewhere else. So the correct code is
let name = Joanna" let greeting = "Hi there, \(name)."
so in the future, only use () if you are pulling in information from somewhere else, use standard words if you can help it/ Also remember, you don't need , after each () if you have multiple of them. I hope that makes sense, good luck with your classes!