207 Accessing nested objects


I’m having a problem with 207. When I put:
var gloveBoxContents = my Storage.car[“inside”].glove_box;
I get “inside” should be in for notation. When I put it in for notation, it tells me gloveBoxContents is undefined.
Can someone help me figure out what is going wrong?


"glove_box" is not a property of inside. “glove box” is a property of inside, so you must use bracket notation instead of dot notation.

Also, “inside” can be dot notation.


I’ll try it out. Thanks.


Yep! That worked. Thanks.