Ruby Ruby Collections Build a Grocery List Program Create a Method That Returns an Array

Totally lost here. Can someone help me?

Don't know how to return an array here.

array_method.rb
def add_list_items()
  return items
end

2 Answers

There's no such built-in value or variable defined called "items".

Try using an actual array like this instead:

[1, 2, 3, 4, 5]

Good luck! ~Alex

No problem!

Thanks, I looked up how to do it and figured it out.