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 trialAllen Abraham
3,063 PointsWhat is wrong with my code
I also tried
println("Learning / (launguage)")
let language = "Swift"
println("Learning" + language )
3 Answers
Mikael Enarsson
7,056 PointsIt seems that using a backslash ('\') instead of a slash ('/') in the first code you posted (also correcting the spelling of language, of course ^^).
It may be better if someone that's familiar with Swift explains this, but in programming, a backslash often denotes an escape sequence, i.e. some kind of special behavior of the character/sequence following it. For example, "\n" means "insert a newline here" (although I don't know if they use that sequence in Swift).
Allen Abraham
3,063 PointsThank you you were correct i had made the mistake of using / instead of \
Mikael Enarsson
7,056 PointsNo problem ^^
beven nyamande
9,575 Points//interpolation
var beven = "is interesting and fun"
println("Swift is" \(beven))