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