@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-square@thanks_shakey_snake@lemmy.calinkfedilink23•2 years agoIt’s actually the other way around. == has to perform type coercions as part of its equality algorithm, whereas === does not, so == has more steps.
===
is just==
with extra stepsIt’s actually the other way around. == has to perform type coercions as part of its equality algorithm, whereas === does not, so == has more steps.
It’s to be REALLY sure