I don't know what's missing in my code. Kindly be of help. Thank you

Tell us what’s happening:
Describe your issue in detail here.

  **Your code so far**

var myStorage = {
"car": {
  "inside": {
    "glove box": "maps",
    "passenger seat": "crumbs"
   },
  "outside": {
    "trunk": "jack"
  }
}
};

var gloveBoxContents = myStorage.car.inside["glovebox"];
  **Your browser information:**

User Agent is: Mozilla/5.0 (Linux; Android 9; Infinix X626) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/81.0.4044.138 Mobile Safari/537.36

Challenge: Accessing Nested Objects

Link to the challenge:

check the name of the property, there is not a property named glovebox there

Putting properties with two or more words (like “glove box”) is very risky. You should do something like glovebox, gloveBox, glove-box, glove_box. Many errors like this one about names can be fixed by having only one word as you can see, the computer doesn’t like spaces unfortunately.

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