/**
 * Day 6 - Arrays
 * 
 * Activity 2: Array Methods (Basic)
 *  - Task 4: Use the `pop` method to remove the last element from the array and log the updated array.
 */ 


// array creation
let numbers = [1, 2, 3, 4, 5];

// remove the last element from the array
numbers.pop();

// printing the updated array
console.log(numbers); // [1, 2, 3, 4]