Ruby Ruby Collections Ruby Hashes Working with Hash Values

I am unable to pass this test, I couldn't understand, it says set a new key in the hash called "food" etc...

I was unable to pass the test, how can I when it says : set a new key in the hash called "food" with the value of true.

hash.rb
grocery_item = { "item" => "Bread", "quantity" => 1, "brand" => "Treehouse Bread Company" }
grocery_item.has_value?("Bread")
grocery_item[food]

1 Answer

Robert Stefanic
Robert Stefanic
33,069 Points

You're nearly done. You just need to see the value of your key to "true".

What is it that you're not understanding exactly? Is it the words like "key" and "value"?