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

What does a string have to have to be definable? Does it have to include a variable?

  1. Can any letter be used to follow the % sign to denote a variable?
  2. What does a sting have to contain in order to be defined as a string?

1 Answer

I'd recommend reviewing some documentation on Ruby Strings, I think it will give you a better understanding of what they are and how they are typically used, these two are a good start: http://www.tutorialspoint.com/ruby/ruby_strings.htm and http://ruby-doc.org/core-2.2.0/String.html