Developing a JS file that will generate Stores and Items for a board game.

There is an array per store type, for example, there is an array called *BeerStores*. In the BeerStores array is 6 Stores, each store has a *StoreName*, and *StoreWealth*. This is created as follows:

```js
var beerStoreArray = businessCount("Beer Store",5,100,200);

function businessCount(storeType, numStores, min, max) {
            var businessCount = [];
            var x = numStores;
            if (x == 0) {
                return;
            } else {
                while (numStores > 0) {
                    var storeWealth = Math.round(randomIntFromRange(min, max));
                    var storeName = storeType + " " + numStores;
                    businessCount.push({
                        storeName,
                        storeWealth
                    });
                    numStores--;
                }
                return businessCount;
            }
        }
console.log(beerStoreArray);

```

This works great, and outputs the following in console as expected:

```
> 0: {storeName: "Beer Store 5", storeWealth: 140}
> 1: {storeName: "Beer Store 4", storeWealth: 193}

```

etc.

**The issue:**

Now I want to add items inside each Store (e.g. Light Beer) and I am a bit lost. Is there a way I can go through each Store in the *beerStoreArray*, and add *itemName*, and *itemPrice* under it? So that it would output like so:

```
> 0: {storeName: "Beer Store 5", storeWealth: 140 {
    0: {itemName: "Light Beer", price: 10}
    1: {itemName: "Heavy Beer", Price: 12}
    }
> 1: {storeName: "Beer Store 4", storeWealth: 140 {
    0: {itemName: "Light Beer", price: 10}
    1: {itemName: "Heavy Beer", Price: 12}
    }

```

etc.

Thank you for any assistance, I've been really stuck at this part and struggling to find relevant examples.

**Edit**: Fixed the code so that it runs. Please note I don't actually need it to output, it was just my easiest way of explaining how I am trying to structure it. Apologies for the confusion. Essentially, *beerStoreArray* contains several Stores (with values *storeName* and *storeWealth*). I am now trying to add multiple items under each store (with values *itemName* and *itemPrice*). Which I will later list (via document.write).