/**
 * Day 6 - Arrays
 * 
 * Activity 3: Array Methods (Intermediate)
 *  - Task 7: Use the `map` method to create a new array where each number is doubled and log the new array.
 */ 



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

// using the `map` method to double each number
let doubledArr = arr.map((num) => num * 2);

// printing the new array
console.log(doubledArr); // [2, 4, 6, 8, 10]