Return arguments


#1

please Help code is not showing correct. Define a new method called add that takes two numbers as arguments.
Inside the method, return the sum of those numbers.

def double(n*)
return n + n
end


#2

The instructions ask for two numbers. Not sure what n* is...

def add(a, b)
    return a + b
end

At some point we learn about implicit return, which shortens the code a little more:

def add(a, b)
    a + b
end

However, in this exercise the return keyword is likely expected by the lesson checker.