iOS Swift Basics Swift Types String Manipulation

William Rowe
William Rowe
354 Points

What am i doing wrong?

I have done it right multiple times and its still saying I'm wrong.

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

1 Answer

Magnus Hållberg
Magnus Hållberg
12,602 Points

The problem is that you have used string interpolation as well as concatenation. The first part of the challenge asks you to use string interpolation only. So just remove (" + ") and you will pass the first part.