cmdrkeen@programming.dev to Programmer Humor@programming.dev · 1 year agoThe Holy Trinity of JavaScriptprogramming.devimagemessage-square71fedilinkarrow-up1731arrow-down111
arrow-up1720arrow-down1imageThe Holy Trinity of JavaScriptprogramming.devcmdrkeen@programming.dev to Programmer Humor@programming.dev · 1 year agomessage-square71fedilink
minus-squareEphera@lemmy.mllinkfedilinkarrow-up1·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.