@cmdrkeen@programming.dev to Programmer Humor@programming.dev • 6 months agoThe Holy Trinity of JavaScriptprogramming.devimagemessage-square72fedilinkarrow-up1734arrow-down111
arrow-up1723arrow-down1imageThe Holy Trinity of JavaScriptprogramming.dev@cmdrkeen@programming.dev to Programmer Humor@programming.dev • 6 months agomessage-square72fedilink
minus-squareEpheralinkfedilink1•6 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.