3 ms·
JavaScript - everything is a hack.
by intothemild 7y ago
JavaScript - everything is a hack.
- onion2k 7y agoJavaScript - everything is a hack, except when it's not a hack. Therefore "hack === hack // false"
- ak39 7y agothis
- morgancmartin 7y agoYou saw your chance and you took it. And for that, I respect you.
- jannes 7y agoChecks out. NaN === NaN // false
- byte1918 7y agoNaN is 'not a number' A string is not a number A function is not a number If 'not a number' === 'not a number' then any string === any function This is a joke...
- deleted 7y ago[deleted]
- kazinator 7y agoRules around NaN aren't Javascripts fault; it's IEEE floating-point idiocy that a given NaN doesn't compare equal to itself. That is a corruption. It should never be the case that a thing is not itself.
- CodeArtisan 7y agohttps://i.imgur.com/aY35Spo.jpg https://i.imgur.com/aY35Spo.jpg
- dang 7y agoPlease don't post unsubstantive comments here. We don't want programming language flamewars on HN.