Welcome to the Treehouse Community
Looking to learn something new?
I don't understand string
name = "Deja vu" subject = "Treehouse loves" "name_" + "subject"
Jennifer NordellTreehouse Teacher
Ok, first off let me clarify the "Deja vu" thing. It's just an expression that English speakers have taken from French that means roughly "seen/done this before".
Secondly, string is just a fancy way of saying a series of characters. In your code "Deja vu" is a string and so is "Treehouse loves". We denote a string by setting them inside quotation marks.
Here's the code it's looking for:
name = "Jane" subject = "Treehouse loves " + name
Here I've set the name to Jane. Now I've made a new variable named subject which will contain the the value "Treehouse loves Jane". We are using string concatenation here. It takes "Treehouse loves " and "Jane" and smushes them together. That whole thing is now assigned to the variable subject.
Hope that helps! Happy coding!