You can build arrays of objects incrementally using push(). This pattern appears when collecting user input or API responses.
const products = [];
products.push({ name: "Laptop", price: 999 });
products.push({ name: "Mouse", price: 29 });
console.log(products.length); // 2
Each push adds one object to your collection.