Ruby Ruby Basics Ruby Syntax Method Return Values

Chris Drummond
Chris Drummond
943 Points

Unsure about this one

the instructions simply say return a value.

methods.rb
def three
    returns 3
end

def five
    returns 5
end

1 Answer

Steven Parker
Steven Parker
171,342 Points

You're close! But the statement keyword is "return" (singular) instead of "returns".