Accessing Nested Objects w

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["glove box"];
var gloveBoxContents = "maps"; // Change this line

Your browser information:

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

Link to the challenge:

The line (shown below) assigns the string “maps” to the gloveBoxContents variable.

var gloveBoxContents = "maps"; // Change this line

The line above that (shown below) evaluates to the string “maps”, but it not assigned to anything, so nothing happens.["glove box"];
1 Like