Generation

generate functionThu, 15 Jun 2023

Problemas con arreglos unidimencionales

Script function doubleArray(arr){ let newArray = arr.map(num => num * 2) return newArray } doubleArray([2,4,6,8]) // [4,8,12,16]

Questions about programming?Chat with your personal AI assistant