Can someone please explain how the following javascript code:
var temp = {};
temp[0] = "a"
temp[1] = "b"
temp[2] = "c"
if different from an array like
var temp = new Array();
or
var temp = []
I don't really understand if the first example "temp = {}" can be considered an array or is it some kind of object?