Welcome to the Treehouse Community
Looking to learn something new?
Amir AmiriCourses Plus Student 102 Points
Could you please explain the answer of this challenge
This is how I wrote this:
let language = "Swift" var Amir : String = "Learning" println(amir+language)
I don't know why it's not working !!!
let language = "Swift" var Amir : String = "Learning" println(Amir+language)
Holger Liesegang50,595 Points
Welcome to Treehouse, Amir Amiri !
The error message said: "You need to interpolate the value of the 'language' constant into the string you pass to 'println'."
You can do that like this:
let language = "Swift" println("Learning \(language)")
...also you might want to have a look at https://developer.apple.com/library/ios/documentation/Swift/Conceptual/Swift_Programming_Language/StringsAndCharacters.html at section String "Interpolation"