var data = [55, 100, 38, 40, 83, 95];
var sum = 0;
for (var i = 0; i < data.length; i++) {
document.write('<p>各点数:' + data[i] + '点</p>');
sum += data[i];
}
var ave = sum / data.length;
document.write('<p>平均点' + ave + '点</p>');
js_cc_04_array_sample
---------------------
A [Pen](https://codepen.io/m-shinkawa/pen/wXWxyM) by [m-shinkawa](https://codepen.io/m-shinkawa) on [CodePen](https://codepen.io).
[License](https://codepen.io/m-shinkawa/pen/wXWxyM/license).