loading...

re: Daily Challenge #119 - Adding Big Numbers VIEW POST

FULL DISCUSSION
 

There's a BigInt type in vanilla javascript, why not just use that instead?

const add = (a, b) => (BigInt(a) + BigInt(b)).toString();
add("10000000000000000000", "3");   // 10000000000000000003
code of conduct - report abuse