JS

Arrays in JavaScript - Create an array with a spec...

8.

Which of the following is a valid way to create an array with a specific length filled with undefined values?

var arr = Array();

var arr = [];

var arr = new Array(5);

var arr = [undefined, undefined, undefined, undefined, undefined];