How to add an array into an array of objects code example Example: how to add objects in array var a=[], b={}; a.push(b); // a[0] === b;