1function copyArrayAndManipulate(array, instructions) {
2 const output = []
3 for(let i = 0; i < array.length; i++) {
4 output.push(instructions(array[i]))
5 }
6 return output
7}
8
9function multiplyBy10(input) {
10 return input * 10
11}
12
13copyArrayAndManipulate([1, 2, 3], multiplyBy10)