array push new instancr code example
Example 1: js array push
const arr = ["foo", "bar"];
arr.push('baz'); // 3
arr; // ["foo", "bar", "baz"]
Example 2: how to add object to array javascript
var object = "Some Object"
var array = []
array.push(object)