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 trialIgnacio Lomeli
62 Pointsfirst step and I'm Bummer I watch the video like 3 times the way they ask the question is all together that I get lose
can some one give me the answer of the first challenge I need to figure out how they ask the question so I can respond to the challenge I see all the information together that I get lost 1- 2- 3- 4-
println("let language") = "Swift"
3 Answers
Daniel Sattler
4,867 Pointsprintln("let language") = "Swift"
you try to define a constant within a println function... that doesn't work unfortunately.
first define the constant, THEN print it.
let language = "Swift
defines a constant of type String with the value "Swift"
println(language)
Would print out the word Swift in your console.
In order to archive what you want you need to use something called "String interpolation". Scary word, i know. What it means is basically using a variable or constant WITHIN a String... how to do this?
println("Learning \(language)")
Would print out "Learning Swift"
I hope this makes sense to you ;-)
Ignacio Lomeli
62 PointsThank you Daniel for your respond was very fast, I was thinking that I will get a respond by monday, I never thinking that only take 30 minutes to get respond.
Daniel Sattler
4,867 PointsNice surprise then hu?
You are welcome ;-)