I have an array of objects

```
var event1Array {
    name: wedding;
    time: ["10:00am", "12:00pm"];
}
var event2Array {
    name: housewarming;
    time: ["7:00pm", "9:00pm"]
}

var eventArray = [event1Array, event2Array];

```

I want to loop through using just two loops (inner and outer) using an alert like this

```
alert("attend a " + eventArray.name + " starting " + theEvent.time) 

```

But my event info keeps printing twice like

```
attend a wedding starting 10am, 
attend a wedding starting 12pm
attend a housewarming starting 7pm
attend a housewarming starting 9pm

```

here's the complete code

```
var event1Array 
{ 
    name: wedding; 
    time: ["10:00am", "12:00pm"]; 
}

var event2Array 
{ 
    name: housewarming; 
    time: ["7:00pm", "9:00pm"]; 
} 

var div = document.getElementById("events"); 
var eventArray = [event1Array, event2Array]; 

for (var i = 0; i < eventArray.length; i++) 
{
    var theEvent = eventArray[i];
    for (j = 0; j < theEvent.time.length; j++)
    { 
        console.log("Attending a wedding" + theEvent.name + "starting" + theEvent.time[j]); 
    }
}

```