- cross-posted to:
- programmerhumor@lemmy.ml
- cross-posted to:
- programmerhumor@lemmy.ml
You must log in or register to comment.
I don’t think my sanity can take all of these explanations.
Though I just spotted one that’s worse than null being an object …
typeof NaN "number"
I mean, come on… it’s even in the fucking name!
Edit - fixed capitalisation in ‘NaN’
Number = IEEE-754 double precision float, which includes NaN, so it makes sense
Douglas Crockford has a whole chapter of these in his latest book. There’s also this classic video.