JS

Arrays in JavaScript - What does the following cod...

24.

What does the following code do: new Array(3)?

Throws an error due to incorrect syntax

Initializes a new array with the values [3]

Creates a new array with 3 undefined elements

Creates a new sparse array with 3 empty slots