DEV Community

Discussion on: What’s your alternative solution? Challenge #34

Collapse
 
jpantunes profile image
JP Antunes

You can use the new-ish BigInt type and be done with it :-)

const add =(sNum1, sNum2) => String(BigInt(sNum1) + BigInt(sNum2))