@cmdrkeen to Programmer Humor • 9 months agoThe Holy Trinity of JavaScriptimagemessage-square72arrow-up1735arrow-down111
arrow-up1724arrow-down1imageThe Holy Trinity of JavaScript@cmdrkeen to Programmer Humor • 9 months agomessage-square72
minus-squareEpheralinkfedilink1•9 months agoThe == operator in JS will try to cast the things being compared and do all kinds of ‘smart’ assumptions about what equality means. This is why everyone uses === instead…
The
==
operator in JS will try to cast the things being compared and do all kinds of ‘smart’ assumptions about what equality means. This is why everyone uses===
instead…Unless you enjoy inviting the chaos.