7.lets learn return, it passed but


#1

This is my code working :

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

I can pass to the next exercise but the compiler says:

wrong number of arguments (1 for 2)

why?


#2

to pass multiply arguments into a function, you separate them with a comma (,):

add(3,4)

now the add function will return the sum of 3 and 4


#3

Of course! thank you!