What is the difference between Object Literals and Array Literals in JavaScript? I know it has something to do with the length method but i don\'t fully understand it.
Object literal
var a = {};
Array Literal
var a = [];
That's it!