javascript array push object

JavaScript
var a=[]
var b={};
a.push(b);    var object = "Some Object"
var array = []

array.push(object)let items = [1, 2, 3]
items.push(4); // items = [1, 2, 3, 4]//push in object javascript
var data = [];
// ...
data[0] = { "ID": "1", "Status": "Valid" };
data[1] = { "ID": "2", "Status": "Invalid" };
// ...
var tempData = [];
for ( var index=0; index<data.length; index++ ) {
    if ( data[index].Status == "Valid" ) {
        tempData.push( data );
    }
}
data = tempData;array.push(element)var myArray = [];
myArray.push("Example");
myArray.push("text");
Source

Also in JavaScript: