// A two-dimensional array is like having a table with rows and columns,
// though the first element always starts with "0" (as opposed to 1)
var grid = [
/* column: 0 , 1 , 2
/* row 0 */["0,0", "1,0", "2,0"],
/* row 1 */["0,1", "1,1", "2,1"]
];
show(grid[1][2]); // row 1, column 2
// This is just a simple array with elements, again the indexes
// start at 0.
/* index: 0 , 1 , 2 , 3 , 4 , 5 */
var grid = ["0,0", "1,0", "2,0", "0,1", "1,1", "2,1"];
show(grid[2 + 1 * 3]); // order of operations applies so 2+1*3 is actually:
// "2+(1*3)" => "2+3" => "5"
// so grid[5] = "2,1"