javascript 3道练习题.js

时间:2023-11-10 14:21:07
【文件属性】:

文件名称:javascript 3道练习题.js

文件大小:2KB

文件格式:JS

更新时间:2023-11-10 14:21:07

JavaScript

var john = [89,120,103]; var sum=0; for(var i = 0; i < john.length; i++){ sum += john[i]; } var mean1 = sum / john.length; console.log("john:",mean1); var mike = [116,94,123]; var sum=0; for(var i = 0; i < mike.length; i++){ sum += mike[i]; } var mean2 = sum / mike.length; console.log("mi


网友评论