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


Quiz Question 3 of 4 on Ruby Basics String Creation

I have a problem with this question. It is regarding double quotes or single quotes for creating a string.

A string CAN be created with single or double quotes, it just won't be INTERPOLATED properly unless the interpolation is between the double quotes (I know I just tested it) so the question needs revising because you can create a string between single or double quotes as long as you interpolate properly later.

1 Answer

Paul Stettnisch
Paul Stettnisch
10,712 Points

Please copy and paste the question for better results: ::::::: Which of the following would be used to create an interpolated string? ::::::::: The intent of the question was which quotation marks would you need to use if you need interpolation. There is only one right answer here as a single quote will not interpolate a variable.