var ourPets = [
{
tipo de animal: "gato",
nombres: [
"Meowzer",
"Mullido",
"Kit-Cat"
]
}
{
tipo de animal: "perro",
nombres: [
"Lugar",
"Bowser",
"Frankie"
]
}
];
ourPets [0] .names [1]; // "Fluffy"
ourPets [1] .names [0]; // "Lugar"
myPlants
usando el punto de objeto y la notación de corchete de matriz. secondTree
debe ser igual a "pino"
testString: 'assert(secondTree === "pine", "secondTree
should equal "pine"");'
- text: Use la notación de puntos y corchetes para acceder a myPlants
testString: 'assert(/=\s*myPlants\[1\].list\[1\]/.test(code), "Use dot and bracket notation to access myPlants
");'
```