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 trialIan Callahan
Courses Plus Student 228 Pointsprintln challenge errr???
Its telling me to use interpolation in the challenge and I have looked at the video a ton but can't see what I am missing in this
let language = "Swift"
println ("learning \("language)")
4 Answers
Nejc Vukovic
Full Stack JavaScript Techdegree Graduate 51,574 PointsHI there:
Your code:
let language = "Swift"
println ("Learning \("language)")
Right code:
let language = "Swift"
println ("Learning \(language)")
You have a double quote in your interpolation. And I think the l in learning should be uppercase :) The extra quote breaks the string in the middle therefore the interpolation could not be parsed.
Ian Callahan
Courses Plus Student 228 PointsWell thanks again haha. If I may ask why does the capitalization matter so much??
Nejc Vukovic
Full Stack JavaScript Techdegree Graduate 51,574 PointsWell the CAPS matter just that the challenges are checked behind the scenes by scripts and you have to put it that way or it gives you an error -> which is good 'cos this way you learn to keep your code nice and tidy in the future, it's easier to read clean code then code all over the place with no head or tail :)
I real life situation it doesn't matter.
Ian Callahan
Courses Plus Student 228 PointsGot it, thanks!! As you can tell I am quite new to this.
Nejc Vukovic
Full Stack JavaScript Techdegree Graduate 51,574 PointsGreat that you are new. Means you are willing to learn. I personally like to hear that.
It's a bit harder to get it right when you have no experience with coding.
But you chose the best place to get your Foundations: teamtreehouse.com :)
Ian Callahan
Courses Plus Student 228 PointsI am willing to learn. Your definitely right about that it being hard with no experience. I've always been good with computers in the sense of using programs and getting things done. Just trying to shift my point of view now