Quotes help make search much faster. Example: "Practice Makes Perfect"

Thursday, May 11, 2017

FreeCodeCamp Accessing Nested Objects Sample Solution


// 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"];

No comments:

Post a Comment


This is an example of scrolling text using Javascript.

Popular Posts