javascript create object and push to array code example Example: javascript array push object var myArray = []; myArray.push("Example"); myArray.push("text");