I know that there is a Boolean object in JavaScript, but I'm wondering if there is a way to access the metal, the raw single bit that lives at the heart of this Boolean object.
I don't know of any bit type in javascript. If you're worried about conserving space and need to store a lot of bits, you could probably use ints and Bitwise Operators in conjunction. You'd be manipulating the individual bits within each int (so 32 on most systems)
You can't access it, but you can assume true is 1 and false is 0.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With