Codehs 8.1.5 Manipulating 2d Arrays Verified -

If the task requires you to fill a 2D array with specific values (like a multiplication table or a coordinate grid), your code would look similar to this:

var array = [[1, 2, 3], [4, 5, 6], [7, 8, 9]]; var element = array[1][1]; // access element at row 1, column 1 console.log(element); // output: 5 Codehs 8.1.5 Manipulating 2d Arrays

Add a new column (each row gets an extra element): If the task requires you to fill a

: Accessing a value requires two indices: array[row][column] . var element = array[1][1]