Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialssshhh
Courses Plus Student 196 Pointsexplain: using an interpolated string or an example.
How can I backup to see previous lesson?
// Enter your code below
let name = "Russ"
let greeting = "Hi there, "
"\(greeting) \(name)"
1 Answer
Steve Hunter
57,712 PointsHi Shelli,
You've nearly got that - very close indeed.
You have a constant called name
and you want to use that inside a String that's going to be assigned to another constant called greeting
. You just need to put the name
part inside the string you've called greeting
. That could look like this:
let name = "Steve"
let greeting = "Hi there, \(name)."
To go back from a quiz to a video, use the breadcumb tracker across the top of the screen. Underneath where it says "Swift 2.0 Basics" there's a row of arrows or play symbols - that's your course progress. Click on the one prior to where you currently are (which is circled) and you'll go back one step.
Steve.