Accessing Nested Objects and More

Accessing Nested Objects and More
0

#1

Tell us what’s happening:

I am stuck here. I dont know where the problem is. Please anyone assist me here.

Your code so far

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

// Only change code below this line
myStorage.car.glovebox;
var gloveBoxContents = "maps"; // Change this line


Your browser information:

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

Link to the challenge:


#2

myStorage.car.glovebox; This line is just chilling, not doing anything. I assume you intended to assign it to something.

var gloveBoxContents = "maps"; // Change this line You shouldn’t be returning a hardcoded value. You should be using the appropriate object lookup.