Re help Accessing Nested Objects

Re help Accessing Nested Objects
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
myStorage.car.inside["glove box"];
var gloveBoxContents = "maps"; // Change this line

Your browser information:

Your Browser User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_5) AppleWebKit/601.6.17 (KHTML, like Gecko) Version/9.1.1 Safari/601.6.17.

Link to the challenge:


#2

var gloveBoxContentes should be assigned the contents of the glove box using bracket notation.

Hint: You already called the contents of the glove box!!!