Can someone clarify if the following code snippet creates an empty array in JavaScript:
var arr = {};
Is it equivalent to using the new Array()
constructor like this:
var arr = new Array();
I would appreciate any insights on this matter. Thank you!