/**
 * Day 6 - Arrays
 * 
 * Activity 1: Array Creation and Access
 *  - Task 2: Access the first and last elements of the array and log them to the console.
 */ 


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

// access the first and last elements
let firstElement = numbers[0];
let lastElement = numbers[numbers.length - 1];

// printing the first and last elements
console.log(firstElement); // 1
console.log(lastElement); // 5