Practice Makes Perfect - can't run greeter method


#1



Hi all,

Getting the error below when I try to run greeter. Can't seem to figure out why there is an issue, anyone have any insight?

Thanks!

Oops, try again.
Your code threw the following exception: uninitialized constant Context::Bar


 
def greeter(name)
    return "Hello" + name
end

def by_three?(number)
    return number % 3 == 0
end

greeter(Bar)


#2

try adding a space after the word Hello in the strnig ""

return "Hello " + name


#3

Didn't work. Figured out the issue though. When I called the greeter method, my name should've been in " ". Forgot about that!

Appreciate the help, thanks!


#4

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