array.sum()
The sum of values in an array. If the array parameter value is an empty array, returns zero.
array.sum( )
Returns: Number
This function does not take any arguments.
Examples
number = [10,20,30,40,50,60,70];
res = number.sum();
writeDump(res);
number = [0.1,0.2,0.3,0.4,0.5,0.6,0.7];
res = number.sum();
writeDump(res);