A Very Big Sum

  • + 1 comment

    Try to use BigInt(value) in counting a big number

      function aVeryBigSum(ar) {
        return ar.reduce((a, b) => BigInt(a) + BigInt(b));
      }