generate different sums in js code example Example: summation js const summation = (n) => (n * (n + 1)) / 2;