Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
plank
· 10y ago · 0 comments
Took me a couple of tries... (Spoiler): Anyone anything shorter then 4 characters (two characters)?
Comments
[–]
lma21
10y ago
How did you solve the reflexive? I'm not getting at anything :(
[–]
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`
[–]
0x4139
10y ago
!0 - 2 chars 1>0 - 3 chars
[–]
plank
OP
10y ago
Ah. 2 distinct characters now.
[–]
justinlardinois
10y ago
I used !!1
[–]
bradleydwyer
10y ago
Yup. !0