JS

Arrays in JavaScript - Declare an empty array

1.

How do you declare an empty array in JavaScript?

var arr = [];

var arr = new Array();

var arr = {};

var arr = "";

1 / 30

Next