append new object to js array code example
Example 1: js push array
array.push(element_to_push);
Example 2: how to add object to list in javascript
var a=[]
var b={};
a.push(b);
array.push(element_to_push);
var a=[]
var b={};
a.push(b);