Blake Delle FavePro Student 108 Points
I can't understand how my interpolated greeting is wrong.
I am trying to input a string literal into an interpolated line of code, but the compiler keeps telling me that I can't interpret an interpolation the way that I wrote the code.
interpolatedGreeting = "(Hi there) , (Linda)"
What am I missing?
// Enter your code below let name = "BlakeDelleFave" let greeting = "hi there" + "name" let interpolatedGreeting = "\(Greeting) , \(Linda)"
Daniel TuratoJava Web Development Techdegree Graduate 30,118 Points
As the greeting constant itself should be the interpolated string. So greeting should be like this:
let greeting = "Hi there, \(name)"