<sectionid="description"> Como hemos visto en ejemplos anteriores, los objetos pueden contener tanto objetos anidados como matrices anidadas. Al igual que para acceder a objetos anidados, la notación de paréntesis de arrays se puede encadenar para acceder a arrays anidados. Aquí hay un ejemplo de cómo acceder a una matriz anidada: <blockquote> var ourPets = [ <br> { <br> tipo de animal: "gato", <br> nombres: [ <br>"Meowzer", <br>"Mullido", <br>"Kit-Cat"<br> ] <br> } <br> { <br> tipo de animal: "perro", <br> nombres: [ <br>"Lugar", <br>"Bowser", <br>"Frankie"<br> ] <br> } <br> ]; <br> ourPets [0] .names [1]; // "Fluffy"<br> ourPets [1] .names [0]; // "Lugar"</blockquote></section>
<sectionid="instructions"> Recupere el segundo árbol de la variable <code>myPlants</code> usando el punto de objeto y la notación de corchete de matriz. </section>