Nested object solution

The solution I have written is not working.

const myStorage = {
"car": {
  "inside": {
    "glovebox": "maps",
    "passenger seat": "crumbs"
   },
  "outside": {
    "trunk": "jack"
  }
}
};
const gloveBoxContents = myStorage.car.inside["glovebox"]; 
console.log(myStorage)
  **Your browser information:**

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

Challenge: Accessing Nested Objects

Link to the challenge:

You are close!
Look again carefully.

Its glove box and NOT glovebox. You just forgot the leave a space :smiley:

Edit:

You also changed this part of myStorage. Dont change it since it interrupts the fcc testing from working correctly. Make it normal, that is, change glovebox back to glove box. It should work now.

1 Like

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.