> No, java script has two built in number types, number and bigint
BigInt is a new feature, I am only talking about Number. Hence “old”.
In the ECMAScript 3 specification (and later versions), it's specified that the bitwise operators convert the value to a 32-bit signed integer, with two's-complement wraparound behaviour. The input (Number) and output (Number) is notionally a 64-bit float, but this doesn't mean there aren't integer operations. And in fact in any modern JS engine, integer values of this kind will be stored as integers, not floats, for efficiency's sake.
There is an entire 32-bit C-compatible abstract machine (asm.js) built on top of this primitive!
BigInt is a new feature, I am only talking about Number. Hence “old”.
In the ECMAScript 3 specification (and later versions), it's specified that the bitwise operators convert the value to a 32-bit signed integer, with two's-complement wraparound behaviour. The input (Number) and output (Number) is notionally a 64-bit float, but this doesn't mean there aren't integer operations. And in fact in any modern JS engine, integer values of this kind will be stored as integers, not floats, for efficiency's sake.
There is an entire 32-bit C-compatible abstract machine (asm.js) built on top of this primitive!