Revision 89989ea8-662d-4423-8252-01166a621090 - Stack Overflow
I've been monkeying with Javascript for several years now (since back in the day before Gmail, Facebook, and YouTube, if you believe such a day existed). Big high-five to Thau.
My `Question`, as such:
**Are arrays merely objects in disguise? Why/Why not? In what way(s) are they (such/not)?**
I have always thought of arrays and objects in JS as essentially the same, primarily because accessing them is identical.
var obj = {'I':'me'};
var arr = ['you':'them'];
console.log(obj.I);
console.log(arr.you);
console.log(obj['I']);
console.log(arr['you']);
Am I mislead/mistaken/wrong? What do I need to know about JS literals, primitives, and strings/objects/arrays/etc...?