Files

18 lines
384 B
Markdown
Raw Normal View History

2018-10-12 15:37:13 -04:00
---
title: Nest one Array within Another Array
---
# Nest one Array within Another Array
2018-10-12 15:37:13 -04:00
---
## Hints
### Hint 1
2018-10-12 15:37:13 -04:00
Arrays are one-dimensional; that means they store only one row of data. But you can make an array multi-dimensional by putting arrays inside arrays! Like so:
```javascript
var arr = [["Two-dimensional", 2], ["Two rows", 12]];
```
The above array has two dimensions.