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 trial

iOS Swift Basics Swift Types String Manipulation

what's wrong

can I get some feedback please

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

1 Answer

Steven Parker
Steven Parker
231,275 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").