es6 reduce sum values code example
Example: javascript reduce sum
arrSum = function(arr){ return arr.reduce(function(a,b){ return a + b }, 0);}
arrSum = function(arr){ return arr.reduce(function(a,b){ return a + b }, 0);}