[Solved] Adding two big numbers in javascript [duplicate]
welcome to StackOverflow. For doing operations with such big integers, you should use BigInt, it will correctly operate on integers bigger than 2ˆ53 (which is the largest size that normal Number can support on JS const sum = BigInt(76561197960265728) + BigInt(912447736); console.log(sum.toString()); Edit 2020: This API still not widely supported by some browsers, so you … Read more