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

Carlos Andres rodriguez
Carlos Andres rodriguez
4,849 Points

still, idk what I am expected to do here.

idk what to do here, i'm expected to return an array, not a hash. Right?

array_method.rb
def add_list_item
  array = []
  return array
end

1 Answer

KRIS NIKOLAISEN
PRO
KRIS NIKOLAISEN
Pro Student 50,888 Points

Just a small error. The method name is add_list_items with an s.