Not seeing the light on this one: 17 Methods with Arguments


#1

I’m not getting this one at all.

<Below this line, add a link to the EXACT exercise that you are stuck at.>
https://www.codecademy.com/courses/learn-ruby/lessons/methods-blocks-sorting/exercises/methods-with-arguments?action=lesson_resume

<In what way does your code behave incorrectly? Include ALL error messages.>
wrong number of arguments (given 0, expected 1)

```

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

<do not remove the three backticks above>

#2

Remove your puts statement and replace it with return "Hello, #{name}"

Is your question more relating to the string interpolation?


#3

I guess I was expecting something to happen. :grinning:

It looks right, so I’m moving on.

Thanks for the reply.


#4

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.