var ourPets = [
{
animalTipo: "gato",
nomes: [
"Meowzer",
"Fofo",
"Kit-Cat"
]
}
{
animalTipo: "cachorro",
nomes: [
"Local",
"Bowser",
"Frankie"
]
}
];
ourPets [0] .nomes [1]; // "Fofo"
ourPets [1] .nomes [0]; // "Local"
myPlants
usando ponto de objeto e notação de colchetes de matriz. secondTree
deve ser igual a "pine"
testString: 'assert(secondTree === "pine", "secondTree
should equal "pine"");'
- text: Use a notação de pontos e colchetes para acessar myPlants
testString: 'assert(/=\s*myPlants\[1\].list\[1\]/.test(code), "Use dot and bracket notation to access myPlants
");'
```