Re:Return True to Win
by plank on Friday August 12, 2016 @08:01AM
(#12274878)
Took me a couple of tries...
(Spoiler):
Anyone anything shorter then 4 characters (two characters)?
[ Parent
| on HN ]
How did you solve the reflexive? I'm not getting at anything :(
NaN != NaN. It's how you're supposed to test for NaN, apparently.
Or use isNaN
I'll give you one chance to guess how isNaN is implemented. https://github.com/v8/v8/blob/e6d1a80e790117dc27b20e9b14de4b...
Yeah, tricky one. NaN works though. Because NaN == NaN = false
Another version, also 3 characters: 0/0
Infinity - Infinity
reflexive(
function() {return ++window.x;}()
)
I don't think so
I broke things to do it
[] - {}
`NaN`
!0 - 2 chars
1>0 - 3 chars
Ah. 2 distinct characters now.
Re:Return True to Win
by justinlardinois on Friday August 12, 2016 @07:55PM
(#12279548)
I used !!1
Re:Return True to Win
by bradleydwyer on Friday August 12, 2016 @08:09AM
(#12274924)
Yup. !0