Methods, Blocks, and Sorting. Return


#1

def add(n)
return n + n
end
output = add(4)
puts output

What's wrong with my code? It puts out 8—the desired output—yet it says "Oops, try again. Make sure your add method expects two arguments".


#2

Nevermind, I figured it out. ;^)