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

Hi There !! Even with the tips i could not figure out.

Can someone give me a hand on this?

strings.swift
// Enter your code below
let name = "Wilian"
let greeting = "Hi there, \(Wilian)"
let finalGreeting = greeting + ". How are you?"
Jorge Solana
Jorge Solana
6,064 Points

As I said, I believe it's just about the dot in the last string.

1 Answer

Jorge Solana
Jorge Solana
6,064 Points

Hey there Wilian!

This is what I used and worked fine for me. Maybe is just the coma by "Hoy are you?" string.

// Enter your code below
let name = "Name"
let greeting = "Hi there, \(name)"
let finalGreeting = greeting + " How are you?"

Hope it helps!