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

Ruby

Ruby 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

You 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.

It 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.

OK, I said,

website = "Google" Treehouse <<-HELLO Hello do you like #{website}?HELLO

and It was wrong, I don't get it!

Hi Darrell,

You have to add double quotes ( " ) like this below, it worked for me. If not, try single quote ( ' )

website = "_______ Treehouse "________

So are you saying?....

website = ""Treehouse" Treehouse" <<-HELLO Hello, do you like #{website}?HELLO

... it looks pretty strange to me but, I'll try it.

No, this is answer ----- > website = "_______ Treehouse "________

Just quotes " "

NEITHER WAY is working.... this is so weird.... I really don't get it!

Can someone just show me exactly what you would write, please.

See my answer above. The correct answer is to put a " in each of the blanks. That's all you need.

ahahaah!... 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!