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]

Want to kickstart your project?Use the new AI Studio to create your code