DEV Community

Discussion on: console.log(9007199254740992 + 1); Surprised by the result?

Collapse
 
akashkava profile image
Akash Kava

Well no, because all numbers have definitive limit in every computing platform/framework/language. And I can guess, it is number overflow. Languages like c# throws an exception in some cases.

I was expecting an overflow exception, but JavaScript didn't so that was surprise !!