<sectionid="description"> Se puede acceder a las sub-propiedades de los objetos encadenando la notación de punto o corchete. Aquí hay un objeto anidado: <blockquote> var ourStorage = { <br>"escritorio": { <br>"cajón": "grapadora"<br> } <br>"gabinete": { <br>"cajón de arriba": { <br>"folder1": "un archivo", <br>"folder2": "secretos"<br> } <br>"cajón inferior": "soda"<br> } <br> }; <br> ourStorage.cabinet ["cajón superior"]. folder2; // "secretos"<br> ourStorage.desk.drawer; // "engrapadora"</blockquote></section>
<sectionid="instructions"> Acceda al objeto <code>myStorage</code> y asigne el contenido de la propiedad <code>glove box</code> a la variable <code>gloveBoxContents</code> . Utilice la notación de corchete para las propiedades con un espacio en su nombre. </section>