Accessing Nested Objects sol

Accessing Nested Objects sol
0

#1

Tell us what’s happening:

Your code so far

// Setup
var myStorage = {
  "car": {
    "inside": {
      "glove box": "maps",
      "passenger seat": "crumbs"
     },
    "outside": {
      "trunk": "jack"
    }
  }
};

// Only change code below this line



// Change this line
var gloveBoxContents.car["inside"];.

Your browser information:

Your Browser User Agent is: Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/61.0.3163.100 Safari/537.36.

Link to the challenge:


#2

You are supposed to assign something to the gloveBoxContents variable. You are not assigning anything to gloveBoxContents. Specifically, you are suppose to assign the value of the nested property “glove box” of the myStorage object to gloveBoxContents.