// Create an empty array for inventory items
let inventory = [];

// Create three items, each with name, model, cost, and quantity
let item1 = {
    name: "MacBook",
    model: "Air",
    cost: 1600,
    quantity: 21000
};
let item2 = {
    name: "MacBook",
    model: "Pro",
    cost: 1600,
    quantity: 27000
};
let item3 = {
    name: "Mac",
    model: "mini",
    cost: 700,
    quantity: 19500
};

// Add all three items to the inventory array
inventory.push(item1, item2, item3);

// Print the contents of the inventory array
console.log(inventory);

// Print the third inventory item's quantity
console.log("3rd item quantity: " + inventory[2].quantity);

// Create a fourth item
let item4 = {
    name: "iMac",
    model: "Pro",
    cost: 3400,
    quantity: 9999
};

// Add the fourth item to the array
inventory.push(item4);

// Print the fourth item's cost
console.log("4th item cost: " + inventory[3].cost);