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 (retired) Types Printing Results

What is wrong with my code

I also tried

println("Learning / (launguage)")

println.swift
let language = "Swift"
println("Learning" + language )

3 Answers

Mikael Enarsson
Mikael Enarsson
7,056 Points

It 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).

Thank you you were correct i had made the mistake of using / instead of \

//interpolation

var beven = "is interesting and fun" 
println("Swift is"  \(beven))