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?

def add_list_item
  array = []
  return array

1 Answer

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