const summation = (n) => (n * (n + 1)) / 2;
arrSum = function(arr){ return arr.reduce(function(a,b){ return a + b }, 0);}