00:00:00 introduciton 00:00:16 example 1 00:02:13 example 2 00:03:58 example 3 // .map() = accepts a callback and applies that function // to each element of an array, then return a new array // ------------ EXAMPLE 1 ------------ const numbers = [1, 2, 3, 4, 5]; const squared = (square); const cubed = (cube); (cubed); function square(element){ return (element, 2); } function cube(element){ return (element, 3); } // ------------ EXAMPLE 2 ------------ const students = ["Spongebob", "Patrick", "Squidward", "Sandy"]; const studentsUpper = (upperCase); const studentsLower = (lowerCase); (studentsLower); function upperCase(element){ return (); } function lowerCase(element){ return (); } // ------------ EXAMPLE 3 ------------ const dates = ["2024-1-10", "2025-2-20", "2026-3-30"]; const formattedDates = (formatDates); (formattedDates); function formatDates(element){ const parts = ("-"); return `${parts[1]}/${parts[2]}/${parts[0]}`; }











