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