Ruby - Methods
What will be the output of this Ruby code?
def sum_all(*numbers) numbers.sum end puts sum_all(1, 2, 3, 4)
def sum_all(*numbers) numbers.sum end puts sum_all(1, 2, 3, 4)
numbers and calls sum on it.15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions