What is wrong with "pets_hash = Hash.new"


#1



https://www.codecademy.com/en/courses/ruby-beginner-en-F3loB/1/2?curriculum_id=5059f8619189a5000201fbcb


Oops, try again.
Did you declare a variable called pets?


pets_hash = Hash.new


#2

You need to use Hash.new to create a new hash called pets and not a new hash called pets_hash.

So, all you need do is:

pets = Hash.new

Hope this helps! :slight_smile:


#3

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.