Ruby Ruby Basics Strings String Concatenation

Jamal Everett
PRO
Jamal Everett
Pro Student 510 Points

a little lost on this one, to be honest. apparently, there is a syntax error but I am almost sure this is correct?

not sure where I am going wrong here

program.rb
def ruby (rocks!)
  puts "ruby" + " rocks!"
end 

1 Answer

Lukas Dahlberg
Lukas Dahlberg
45,290 Points

The challenge is asking for output from a straight string concatenation. You don't need to define a function.

Jay McGavren
Jay McGavren
Treehouse Teacher

Lukas is correct. I should also note that your rocks! parameters is the source of the syntax error - ! isn't valid as part of a method parameter name.