HN
Hacker News
Top
New
Best
Ask
Show
Jobs
Comment by lma21 | Hacker News Reader
Parent
Full thread
lma21
·
How did you solve the reflexive? I'm not getting at anything :(
View on HN
kqr
·
NaN != NaN. It's how you're supposed to test for NaN, apparently.
madawan
·
Or use isNaN
kqr
·
I'll give you one chance to guess how isNaN is implemented.
https://github.com/v8/v8/blob/e6d1a80e790117dc27b20e9b14de4b...
TobbenTM
·
Yeah, tricky one. NaN works though. Because NaN == NaN = false
weisk
·
Another version, also 3 characters: 0/0
razorsese
·
Infinity - Infinity
kitfung
·
reflexive( function() {return ++window.x;}() )
posterboy
·
I don't think so
Zekio
·
I broke things to do it
[] - {}
Burgos
·
`NaN`
Reply on news.ycombinator.com