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
Darrell Brown
Courses Plus Student 1,288 PointsRuby Quiz question ....
Ruby Strings ... first Quiz
There is a question to complete the rest of the string, it looks like this.
website = ____________ Treehouse_____________________
I don't get it!.... I'm completely thrown off by the "website = "
7 Answers
Jeff Jacobson-Swartfager
15,419 PointsYou made it a little bit more difficult than you need to. The following will pass:
website = "Treehouse"
This works because the double quote marks indicate that you are assigning the string "Treehouse" to the variable website.
Jeff Jacobson-Swartfager
15,419 PointsIt is asking you to fill in the blanks so that the variable website gets assigned the string "Treehouse". Remember, you can use either ' or " to indicate that a series of characters is a string.
Darrell Brown
Courses Plus Student 1,288 PointsOK, I said,
website = "Google" Treehouse <<-HELLO Hello do you like #{website}?HELLO
and It was wrong, I don't get it!
Salman Akram
Courses Plus Student 40,065 PointsHi Darrell,
You have to add double quotes ( " ) like this below, it worked for me. If not, try single quote ( ' )
website = "_______ Treehouse "________
Darrell Brown
Courses Plus Student 1,288 PointsSo are you saying?....
website = ""Treehouse" Treehouse" <<-HELLO Hello, do you like #{website}?HELLO
... it looks pretty strange to me but, I'll try it.
Salman Akram
Courses Plus Student 40,065 PointsNo, this is answer ----- > website = "_______ Treehouse "________
Just quotes " "
Darrell Brown
Courses Plus Student 1,288 PointsNEITHER WAY is working.... this is so weird.... I really don't get it!
Darrell Brown
Courses Plus Student 1,288 PointsCan someone just show me exactly what you would write, please.
Jeff Jacobson-Swartfager
15,419 PointsSee my answer above. The correct answer is to put a " in each of the blanks. That's all you need.
Darrell Brown
Courses Plus Student 1,288 Pointsahahaah!... That is the weirdest Test question I've seen so far. You guys gotta agree with me on that one!
I can't believe it was so difficult yet so simple... Thanks guys, I really appreciate your help!