JS

Arrays in JavaScript - Create an array with specif...

23.

Which of the following will create an array with the specified elements [1, 2, 3]?

new Array(1, 2, 3)

new Array([1, 2, 3])

new Array(3).fill(1, 2, 3)

new Array(3).map((value, index) => index + 1)