@[email protected] to Programmer [email protected] • 2 years agoYup, Javascript can go F@#! itselflemmy.mlimagemessage-square27fedilinkarrow-up187arrow-down10
arrow-up187arrow-down1imageYup, Javascript can go F@#! itselflemmy.ml@[email protected] to Programmer [email protected] • 2 years agomessage-square27fedilink
minus-squaremycuslinkfedilink4•edit-22 years 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-squaremycuslinkfedilink1•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, so noUgh, thanks, of course. Stupid brain.
I’m starting to think JS maintainers have a thing against mathematicians
more likely against humans