4 ms·
Don't forget -0.
by noman-land 3y ago
Don't forget -0.
- pcthrowaway 3y agoThat's just another name for 0
- WorldMaker 3y agoBut a different representation in IEEE 754 floating point. If you were building a JS interpreter it would be important to catch that 0 and -0 are different numbers in memory and to hardware operations.
- noman-land 3y agoMDN specifically calls it out. https://developer.mozilla.org/en-US/docs/Glossary/Falsy https://developer.mozilla.org/en-US/docs/Glossary/Falsy
- Drakim 3y ago0 === -0
- noman-land 3y agoMDN specifically calls it out. https://developer.mozilla.org/en-US/docs/Glossary/Falsy https://developer.mozilla.org/en-US/docs/Glossary/Falsy
- Drakim 3y agoHold on the real nugget here is that apparently document.all is a falsy object. Why in the world would that be the case?!?
- noman-land 3y agoI agree! Last time I looked at this page, this was not there.