1Accessing Nested Object

1Accessing Nested Object
0

#1

Tell us what’s happening:

Your code so far

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

// Only change code below this line

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


Your browser information:

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

Link to the challenge:


#2

You shouldn’t have changed the "car" key in myStorage to "c".

Then at the last line, "glove_box" should be "glove box".