Ad
  • Custom User Avatar

    This comment is hidden because it contains spoiler information about the solution

  • Custom User Avatar

    The expected result is correct. To see the problem of yor code try console.log(30000000300000000+7). This produces 3000000030000010 instead of 300000030000007.

    There is a way to resolve the problem without using an accumulator with such enormous numbers.