Can someone explain this question & answer to me?

var list = [11, 35, 6, 0];
var sum = 0;

for (var i = 0; i < list.length; i++) {
sum = sum + list[i];
}
sum = sum/list.length;
console.log(sum);