Stuck in Accessing Nested Objects

Stuck in Accessing Nested Objects
0.0 0

#1

HI! i am stuck at accessing nested objects(JS), i have trouble with the second part of the question, anyone that knows the solution to it(or at least give me a hint :slight_smile: ) ?


#3

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

// Only change code below this line

var gloveBoxContents = myStorage.car.inside[“glove box”]; // Change this