用js求一组数的平均数、期望、方差,用js自带的Math对象能做吗?JavaScript趣题:计算方差var variance = function(numbers) { var mean = 0 var sum = 0 for(var i=0i<numbers.2023-03-04JavaScript220