cobweb example
var theCobWeb = {
biggestWeb: {
item: "comb",
biggerWeb: {
items: ["glasses", "paperclip", "bubblegum"],
smallerWeb: {
item: "toothbrush",
tinyWeb: {
items: ["toenails", "lint", "wrapper", "homework"]
}
}
},
otherBigWeb: {
item: "headphones"
}
}
};
console.log("I found my " + theCobWeb.biggestWeb.item + "!");
console.log("I found my " + theCobWeb.biggestWeb.biggerWeb.items[0] + "!");
console.log("I found my " + theCobWeb.biggestWeb.biggerWeb.smallerWeb.item + "!");
console.log("I found my " + theCobWeb.biggestWeb.otherBigWeb.item + "!");
console.log("I found my " + theCobWeb.biggestWeb.biggerWeb.smallerWeb.tinyWeb.items[3] + "!");