Create a function that accepts an array and returns a new, with duplicate elements, input array. I have such code, but there is an error in it, as correct
function map(Array) { let napp = []; for (let i = 0; i<Array.length; i++){ } return napp; } let doubleArray = Array.concat([1, 2, 3]); console.log(doubleArray); ?
1,2,3=>1,2,3,1,2,3or1,2,3,3,2,1or1,2,3,1,2,3or1,2,3,3,2,1else? - teran