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 Basics (Retired) Ruby Strings String Creation

Matthew Slaton
PLUS
Matthew Slaton
Courses Plus Student 963 Points

I don't understand the question

I am not sure what it means by complete the string.

Christian Schou
Christian Schou
9,208 Points

You just have to complete the string? Are you not sure what to write in the string or what? :)

3 Answers

The question is asking what you would need to make it a string, so entering quotes around the text. "Treehouse"

Matthew Slaton
Matthew Slaton
Courses Plus Student 963 Points

Thank you. The size of the blank fields on either side of the treehouse made me think I had to write something bigger in there on either side. "" worked just fine. Thank you Melissa.

Matthew Slaton
Matthew Slaton
Courses Plus Student 963 Points

Thank you. The size of the blank fields on either side of the treehouse made me think I had to write something bigger in there on either side. "" worked just fine. Thank you Melissa.

Matthew Slaton
PLUS
Matthew Slaton
Courses Plus Student 963 Points

completing the string would be adding " to the front and back and putting text in the middle right?

correct. you can also use single quotes (') around strings.

Matthew Slaton
PLUS
Matthew Slaton
Courses Plus Student 963 Points

It didn't take that. for the quiz it was asking string = ________ treehouse ______

I put in the first blank spot "hello there" and for the second blank "man"