Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
lma21
· 10y ago · 0 comments
How did you solve the reflexive? I'm not getting at anything :(
Comments
[–]
kqr
10y ago
NaN != NaN. It's how you're supposed to test for NaN, apparently.
[–]
madawan
10y ago
Or use isNaN
[–]
kqr
10y ago
I'll give you one chance to guess how isNaN is implemented.
https://github.com/v8/v8/blob/e6d1a80e790117dc27b20e9b14de4b...
[–]
TobbenTM
10y ago
Yeah, tricky one. NaN works though. Because NaN == NaN = false
[–]
weisk
10y ago
Another version, also 3 characters: 0/0
[–]
razorsese
10y ago
Infinity - Infinity
[–]
kitfung
10y ago
reflexive( function() {return ++window.x;}() )
[–]
posterboy
10y ago
I don't think so
[–]
Zekio
10y ago
I broke things to do it
[] - {}
[–]
Burgos
10y ago
`NaN`