I'm currently learning JavaScript and I'm very surprised there is not built-in way to work with binary numbers. I have to work with integers up to 2^4096 so I just can't use JS integers for my calculus.
My first thought was to use Arrays of 1 and 0. But that's not satisfying since a simple multiplication by 2 requires to shift the whole table.
So how can I work efficiently with binary numbers in JavaScript ?
I'd like not to use any library. I'm interested in how it works, not in using other's abstraction.