Ruby Ruby Basics Ruby Syntax Method Arguments

Billy Ng
Billy Ng
5,246 Points

it wont work

i did def say(name) puts /5 end

say("Ruby")

say.rb
def say(name)
puts /5
end

say("Ruby")

1 Answer

andren
MOD
andren
Treehouse Moderator 28,323 Points

Your code is quite close, the only issue is that you are not passing the parameter to puts but passing it \5. If you pass the parameter (name) like this:

def say(name)
  puts name
end

say("Ruby")

Then your code will work.