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
Sonam Jain
511 PointsNow, create a variable named treehouse by combining two strings, "Tree" and "house".
treehouse ="Tree" + "house"
name = "Sonam"
treehouse ="Tree" + "House"
5 Answers
Steve Hunter
57,712 PointsYep - but with a small 'h':
treehouse = "Tree" + "house"
That works for me.
Steve.
ginopino
16,320 PointsThe h in house is not capital.
Ryan Ruscett
23,309 PointsIt was in the example that you posted.
ginopino
16,320 PointsI'm not the author of the post. I commented as you :P
Ryan Ruscett
23,309 Pointsahhh my bad! No worries. Thanks!
kaizen 05
196 Pointsname="venu" site1="Tree" site2="house" treehouse='$site1'+'$site2'
compiler not taking this answer?
Steve Hunter
57,712 PointsI don't think you need the $ signs. And you've surrounded variable names with quotation marks.
I think
treehouse = site1 + site2
should work. But the challenge isn't expecting two interim variable declarations, I don't think. It is after something more like:
name = "Steve"
treehouse = "Tree" + "house"
Steve.