forEach (function(element) {. sum+=element;. }); return sum;. } var data=[1,3,5,7]. console.log(SumDataforEach(data));
確定! 回上一頁