freeCodeCamp/guide/spanish/certifications/javascript-algorithms-and-d.../basic-javascript/nest-one-array-within-anoth.../index.md

13 lines
452 B
Markdown
Raw Normal View History

2018-10-12 19:37:13 +00:00
---
title: Nest one Array within Another Array
localeTitle: Anidar una matriz dentro de otra matriz
---
## Anidar una matriz dentro de otra matriz
Las matrices son unidimensionales; eso significa que almacenan solo una fila de datos. ¡Pero puedes hacer una matriz multidimensional colocando matrices dentro de matrices! Al igual que:
```javascript
var arr = [["Two-dimensional", 2], ["Two rows", 12]];
```
La matriz anterior tiene dos dimensiones.