OsrsNeedsF2P to Programmer Humor · 2 years agoYup, Javascript can go F@#! itselfimagemessage-square39fedilinkarrow-up1141arrow-down14
arrow-up1137arrow-down1imageYup, Javascript can go F@#! itselfOsrsNeedsF2P to Programmer Humor · 2 years agomessage-square39fedilink
minus-squaremycus@kbin.sociallinkfedilinkarrow-up5·edit-22 years agoJS null and undefined shenanigans basically: bigger an lesser comparison types convert null to zero, so is zero bigger or lesser than zero? no == is fucky and to it null only equals undefined and undefined only equals null (and themselves), so no is zero bigger than or equal to zero? yeah
minus-squareBjörn Tantau@feddit.delinkfedilinkarrow-up1·2 years agoUgh, thanks, of course. Stupid brain.
minus-squaremycus@kbin.sociallinkfedilinkarrow-up1·2 years 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 (and themselves), so noUgh, thanks, of course. Stupid brain.
I’m starting to think JS maintainers have a thing against mathematicians
more likely against humans