OsrsNeedsF2P@lemmy.ml to Programmer Humor@lemmy.ml · 1 year agoYup, Javascript can go F@#! itselflemmy.mlimagemessage-square25fedilinkarrow-up140arrow-down12
arrow-up138arrow-down1imageYup, Javascript can go F@#! itselflemmy.mlOsrsNeedsF2P@lemmy.ml to Programmer Humor@lemmy.ml · 1 year agomessage-square25fedilink
minus-squaremycus@kbin.sociallinkfedilinkarrow-up1·edit-21 year agoJS null and undefined shenanigans basically: bigger an lesser comparison types convert null to zero, so is zero bigger than zero? no == is fucky and to it null only equals undefined and undefined only equals null, so no is zero bigger than or equal to zero? yeah
minus-squareBjörn Tantau@feddit.delinkfedilinkarrow-up0·1 year agoUgh, thanks, of course. Stupid brain.
minus-squaremycus@kbin.sociallinkfedilinkarrow-up1·1 year agoI’m starting to think JS maintainers have a thing against mathematicians
JS null and undefined shenanigans
basically:
==
is fucky and to it null only equals undefined and undefined only equals null, so noUgh, thanks, of course. Stupid brain.
I’m starting to think JS maintainers have a thing against mathematicians
more likely against humans