62. implement BigInt addition

JavaScriptAlgorithm
Is this helpful ?

medium  - accepted / - tried

Luckily we have BigInt in JavaScript so handle big numbers.

What if we need to do it by ourselves for older browsers?

You are asked to implement a string addition function, with all non-negative integers in string.

add('999999999999999999', '1')
// '1000000000000000000'

Don't use BigInt directly, it is not our goal here.

Let's try to solve this problem within 10 mintues.

Discuss(20)