Ruby Ruby Basics Strings String Concatenation

Jamal Everett
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

def ruby (rocks!)
  puts "ruby" + " rocks!"

1 Answer

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.