Welcome to the Treehouse Community
Looking to learn something new?
Create a constant named language and assign it a string "Swift"
how do i solve the question
var str = "Swift"
You are on the right track you need to use let to declare a constant variable...
let language = "Swift"
Bao PhamCourses Plus Student 240 Points
I just passed the first session as of now. I didn't understand it at first when I attempted to write the string because of simply the site does not behave exactly like the program "Xcode". I am not giving you the answer here, but when you are supposed to declare the string in reference to "Implicit types" the site does not automatically capitalize the declaration as the system running Xcode does. Had me scratching my head quite a bit haha.
Basically when writing a string you learned at first to write "var" indicating the word (Or terms, abbreviations,etc.) after is the variable. Now, modifying the string line into a "Constant" would be using "let" instead.