add person objects to an array javascript code example
Example 1: how to add objects in array
var a=[], b={};
a.push(b);
// a[0] === b;
Example 2: how to add new object in array in javascript
var fruits = ["Banana", "Orange", "Apple", "Mango"];
fruits.push("Kiwi");