-
What are two points from the Growth Mindset article and/or video that either resonated with you, or were brand new to you?
-
In which ways do you currently demonstrate a Growth Mindset? In which ways do you not?
-
What is a Hash, and how is it different from an Array?
-
In the space below, create a Hash stored to a variable named
pet_store
. This hash should hold an inventory of items and the number of that item that you might find at a pet store. -
Given the following
states = {"CO" => "Colorado", "IA" => "Iowa", "OK" => "Oklahoma"}
, how would you access the value"Iowa"
? -
With the same hash above, how would we get all the keys? How about all the values?
-
What is another example of when we might use a hash? In your example, why is a hash better than an array?
-
What questions do you still have about hashes?