Ruby Ruby Basics Strings String Concatenation

Simone Cappelletti
PRO
Simone Cappelletti
Pro Student 2,629 Points

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.