@cmdrkeen@programming.dev to Programmer Humor@programming.dev • 2 years agoThe Holy Trinity of JavaScriptprogramming.devimagemessage-square71fedilinkarrow-up1730arrow-down111
arrow-up1719arrow-down1imageThe Holy Trinity of JavaScriptprogramming.dev@cmdrkeen@programming.dev to Programmer Humor@programming.dev • 2 years agomessage-square71fedilink
minus-squareEpheralinkfedilink1•2 years 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.