Ruby Ruby Collections Ruby Hashes Working with Hash Keys

Mytchell Hagan
Mytchell Hagan
1,871 Points

*[SOLVED]* I don't really understand what it is asking me.

I know what it is asking me, but I am confused on how to do it.

hash.rb
hash = { "name" => "Bread", "quantity" => 1, "calories" => 100 }
hash.key?("calories")

MODERATOR EDIT: Marked post as "solved."

Mytchell Hagan
Mytchell Hagan
1,871 Points

Never mind, I found the answer.