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