🌈 搜索
📅  最后修改于: 2022-03-11 15:01:15.262000             🧑  作者: Mango
var total = 0; for(var i = 0; i < grades.length; i++) { total += grades[i]; } var avg = total / grades.length;