@cmdrkeen@programming.dev to Programmer Humor@programming.dev • 1 year agoThe Holy Trinity of JavaScriptprogramming.devimagemessage-square72fedilinkarrow-up1727
arrow-up1727imageThe Holy Trinity of JavaScriptprogramming.dev@cmdrkeen@programming.dev to Programmer Humor@programming.dev • 1 year agomessage-square72fedilink
minus-squareEpheralinkfedilink1•1 year 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.