In JavaScript, what is the difference between
var stack = {};
and
var stack = [];
The first one is an empty object and the second is an empty array.