I want to rewrite this line:
var mySum = myArray[0] + myArray[1] + myArray[2] + myArray[3];
Considering that I do not know a number of elements in the array, I am thinking of this:
for (var = count; count < array.length; count++)
{
var mySum = ?? // but what's the math for this
}