Technical issue?

Tell us what’s happening:
Describe your issue in detail here.
The command keeps saying: " Your code should use dot and bracket notation to access “myStorage.” But I am very certain that i did it exactly as in the code.
Any help here so that I can move to the next task. Very thankful for any helps!!!

Many thanks!

.

  **Your code so far**

const myStorage = {
"car": {
  "inside": {
    "gloveBox": "maps",
    "passenger seat": "crumbs"
   },
  "outside": {
    "trunk": "jack"
  }
}
};

var gloveBoxContents = myStorage.car["inside"].gloveBox;
  **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.71 Safari/537.36

Challenge: Accessing Nested Objects

Link to the challenge:

Access the myStorage object and assign the contents of the glove box property to the gloveBoxContents variable. Use dot notation for all properties where possible, otherwise use bracket notation.

Also, the name of the property is “glove box” not gloveBox.

1 Like

Ah, changing property names is one sure-fire way to baffle the tests.

thanks alot!!! i made it, haha.

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