javascript summation function code example Example: summation js const summation = (n) => (n * (n + 1)) / 2;