I have a JavaScript variable defined as a new array in the following manner:

```
var myDaysComparisonData = new Array(['Mondays', 0], ['Tuesdays', 0], ['Wednesdays', 0], ['Thursdays', 0], ['Fridays', 0], ['Saturdays', 0], ['Sundays', 0]);

```

and also I have 7 globally defined variables called `myMondaysTotal`,`myTuesdaysTotal` and so on which holds the values that I want to replace the zeros in the upper array in the corresponding day of the week. What is the approach in this cases?