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