The array
data type is a common way to store tabular data (rows and columns). To do this, we use an array of arrays, or "two-dimensional array", where each row is its own array:
var cars = [
["make", "model", "year"],
["Pontiac", "Vibe", 2009],
["Honda", "Fit", 2007],
["Chevrolet", "Blazer", 2000],
["Toyota", "RAV4", 1999]
];
To get a "cell" in this table, use the following notation, where the first number is the row, and second is the column:
cars[1][0]