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 trialJC Dringenburg
2,903 PointsQuestion: "create a variable named treehouse by combining two strings."
I have entered Task 1 correctly and it passed, but I get warning message saying "Task 1 isnt passing." I know my code might be wrong for #2 (which I am trying to figure out) but after every attempt I have to go back to Task #1.
2 Answers
Stone Preston
42,016 Pointsyou simply need to concatenate 2 strings together using the + operator. you need to concatenate "Tree" with "house" to make "Treehouse". assign the concatenated strings to the variable treehouse
name = "stone"
treehouse = "Tree" + "house"
JC Dringenburg
2,903 PointsThank you. I guess I was confused by what my name had to do with Task #2.
Stone Preston
42,016 Pointsah yeah sometimes the tasks are not related, though most of the time they tie in at the end of the challenge if not sooner.
Jason Anello
Courses Plus Student 94,610 PointsJason Anello
Courses Plus Student 94,610 PointsHi JC,
Post your code so we can see what's going on.