13 lines
452 B
Markdown
13 lines
452 B
Markdown
|
---
|
||
|
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.
|