What I have is 4 variables that provide scores each stored locally in a function. The hard part is I need to now average these scores and store them in a global variable. I don't know how to move the values of each local variable outside of its function.
* each avg is stored locally in a function of its own.
var finaltotal = (avg1+avg2+avg3+avg4); var finalavg = Math.round(finaltotal / 4);
* I need the average of these averages.
I'm just unsure how to do this if it is at all possible. Thanks!