iOS Swift Basics Swift Types String Manipulation

Maria Alonso
Maria Alonso
7,498 Points

do not know my error

do not understand what was my error

// Enter your code below
let name = "kamal"
let greeting = "Hi there"
let interpolatedgreeting = "\(greeting), \(name)"

1 Answer

Steven Parker
Steven Parker
207,013 Points

The instructions say "Set the value of greeting to an interpolated string that combines "Hi there, " with the string stored in the name constant."

But this code is assigning the final string to "interpolatedgreeting" instead of "greeting".