const products = [1, 2, 3, 4, 5, 6, 7, 8] function transformToSquare(num) { return num * num } function transformToCube(num) { return num * num * num }
products.map(transformToSquare)
products.map(transformToCube)