var ourPets = [
{
animalType: "cat",
names: [
"Meowzer",
"Fluffy",
"Kit-Cat"
]
},
{
animalType: "dog",
names: [
"Spot",
"Bowser",
"Frankie"
]
}
];
ourPets[0].names[1]; // "Fluffy"
ourPets[1].names[0]; // "Spot"
myPlants
using object dot and array bracket notation.
secondTree
should equal "pine"
testString: 'assert(secondTree === "pine", ''secondTree
should equal "pine"'');'
- text: Use dot and bracket notation to access myPlants
testString: 'assert(/=\s*myPlants\[1\].list\[1\]/.test(code), ''Use dot and bracket notation to access myPlants
'');'
```