Confused on Methods with Arguments


#1

So this is what I typed for the lesson and it passes through. However it only provides the nil output. Can someone please explain why or what i am missing as I tried several outputs to pass through without the proper output. finally settled on this one to continue. I would like to to know why or what is missing to get proper response in output. Thanks in advance.

def welcome(name)
return "Hello, welcome to Ruby, #{name}!"
end


#2

Hi only need to call the function like that

welcome(" type tour name here")

and put it after your end


#3

That would explain another versions output response. Thanks so much. Works great and I understand why.


#4

A post was split to a new topic: Still lost!


#5