const array = [1,2,3,4]
const newArray = array.map(a => a * 2)
console.log(newArray)
// [2,4,6,8]