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 Strings String Concatenation

Hi, i need help to write this semply line. i don't know where it is wrong. Thanks Simon

The joining method is very easy to understand but i can't complete the challenge to joining Ruby and rocks. What's wrong?

thank you Simon

program.rb
puts "Ruby" + "rocks!"

1 Answer

Hi Simon,

As you have it right now, the concatenated string would look like "Rubyrocks!"

Notice that there is no space between "Ruby" and "rocks!" and the challenge mentions that there should be one.

So you have to put a space either after the 'y' in "Ruby" or before the 'r' in "rocks!". Either way would work.

Thank you so much Jason!