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

Kavita Bargota
Kavita Bargota
2,741 Points

can someone help with this challenge? not sure what I am doing wrong here

please help

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

let interpolatedGreetingName = "\(greeting), \(name)"

2 Answers

The final variable had to be called greeting. Try this

let name = "Kavita"
let greeting = "Hi there, \(name)"
Kavita Bargota
Kavita Bargota
2,741 Points

Hey Travis!!

Thanks i worked it out. Really need more practice in this area. Are there any code challenges I could do? on Treehouse or else where in this area?

thanks

This website has a lot of tutorials as well as exercises specifically for swift. You might be able to find some good stuff in there.

Let me know if you need anything else and upvote the answer if you found it helpful.

Kavita Bargota
Kavita Bargota
2,741 Points

Hi Travis,

thank you so much. Very helpful :)

could you pint me in the right direction in finding challenges in relation ios dev? thanks