Ruby Ruby Collections Ruby Hashes Working with Hash Values

Harsh Mankad
Harsh Mankad
4,650 Points

The 2nd part of the question is not clear.

Its not clear what the question is asking for.

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

1 Answer