4 ms·
They're used because of the nonsense that was JS' beginning, in that you couldn't use integers safely past 2^53 - 1 due to floating point limitations. Limitati
by x-complexity 3y ago
They're used because of the nonsense that was JS' beginning, in that you couldn't use integers safely past 2^53 - 1 due to floating point limitations.
Limitations that were because of JS chose to only support one primitive data type for numbers, and that was only recently resolved with the introduction of BigInt & BigInt literals. In 2018.