Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Javascript has two number types. `number` and `bigint`.

https://tc39.es/ecma262/multipage/numbers-and-dates.html#sec...



BigInt isn't super relevant here though, it's new and a distinct type so it doesn't come into play for any typical computations. You can't use it as the size of an array, etc.


Technically it’s number. But bigint can be much larger than a 64-bit integer, so from the CPU’s perspective it’s an array rather than a single integer.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: