cmdrkeen@programming.dev to Programmer Humor@programming.dev · 9 months agoThe Holy Trinity of JavaScriptprogramming.devimagemessage-square65fedilinkarrow-up1731arrow-down111
arrow-up1720arrow-down1imageThe Holy Trinity of JavaScriptprogramming.devcmdrkeen@programming.dev to Programmer Humor@programming.dev · 9 months agomessage-square65fedilink
minus-squareEphera@lemmy.mllinkfedilinkarrow-up1·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…
minus-square8bitguy@kbin.sociallinkfedilinkarrow-up3·9 months agoUnless you enjoy inviting the chaos.
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.