Welcome to the Treehouse Community
Looking to learn something new?
SY LOC3,233 Points
Create a method called "add" that takes two arguments and returns the sum of two numbers.
I typed below and it does't work. I created 2 arguments and give it a sum.
def add(a, b) puts a + b end puts add(2, 3)
You don't have to use twice puts statements, it should have either return or without return to sum up automatically. ;)
def add(a, b) return a + b end puts add(2, 3)