iOS Swift Basics Swift Types String Manipulation

what's wrong

can I get some feedback please

// Enter your code below
let name = "ella"
let greeting = "\(hi there"), \(name)"
let finalgreeting = greeting + ". how are you?"

1 Answer

Steven Parker
Steven Parker
206,349 Points

Odd, it looks like you're on task 3, but task 2 doesn't pass yet.

In the string for "greeting", only "name" should be marked as an interpolation token. "Hi there" is just part of the string.

And instead of "finalgreeting" (with little "g"), the task 3 variable name should be "finalGreeting" (with capital "G").