@[email protected] to Programmer [email protected] • 1 month agoWhich of these javascript expressions is false?lemmy.mlimagemessage-square83fedilinkarrow-up1499cross-posted to: [email protected]
arrow-up1499imageWhich of these javascript expressions is false?lemmy.ml@[email protected] to Programmer [email protected] • 1 month agomessage-square83fedilinkcross-posted to: [email protected]
minus-square@[email protected]linkfedilinkEnglish5•edit-21 month agoI 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’
minus-square@[email protected]linkfedilink4•1 month agoDouglas Crockford has a whole chapter of these in his latest book. There’s also this classic video.
minus-squareNat (she/they)linkfedilink4•1 month agoNumber = IEEE-754 double precision float, which includes NaN, so it makes sense
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 …
I mean, come on… it’s even in the fucking name!
Edit - fixed capitalisation in ‘NaN’
Douglas Crockford has a whole chapter of these in his latest book. There’s also this classic video.
Number = IEEE-754 double precision float, which includes NaN, so it makes sense