var ourPets = [
{
animalType: "cat",
имена: [
"Meowzer",
«Пушистый»,
«Кит-Кат»
]
},
{
animalType: «собака»,
имена: [
"Место",
"Bowser",
«Фрэнки»
]
}
];
ourPets [0] .names [1]; // "Пушистый"
ourPets [1] .names [0]; // "Место"
myPlants
второе дерево из переменной myPlants
используя myPlants
объектов dot и массива.
secondTree
should equal "pine"
testString: assert(secondTree === "pine");
- text: Use dot and bracket notation to access myPlants
testString: assert(/=\s*myPlants\[1\].list\[1\]/.test(code));
```