/**
 * Day 6 - Arrays
 * 
 * Activity 5: Multi-dimensional Arrays
 *  - Task 13: Access and log a specific element from the two-dimensional array.
 */ 


// create 2D array
let matrix = [
    [1, 2, 3],
    [4, 5, 6],
    [7, 8, 9]
];

// Accessing specific element from the two-dimensional array.
console.log(matrix[0][0]);  // 1
console.log(matrix[0][2]);  // 3
console.log(matrix[1][1]);  // 5
console.log(matrix[2][2]);  // 9
console.log(matrix[2][1]);  // 8
