add new object to javascript array code example Example: how to add object to array javascript var object = "Some Object" var array = [] array.push(object)