iOS Swift Basics Swift Types String Manipulation

My code in Xcode shows the proper answer but it says its wrong on the key.

let name = "Adam" let greeting = "Hi there," let interpolatedGreeting = "(greeting) (name)"

strings.swift
// Enter your code below
let name = "Adam"
let greeting = "Hi there,"

let interpolatedGreeting = "\(greeting) \(name)"

1 Answer

Victor Mercier
MOD
Victor Mercier
Treehouse Moderator 14,635 Points

This code seems to be syntactically correct but I think you haven’t well read the instructions. Here is my code:

let name = "Victor"
let greeting = "Hi there, \(name)"

That makes sense! Thank you.