Confused on Methods with Arguments


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}!"


Hi only need to call the function like that

welcome(" type tour name here")

and put it after your end


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


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