cmdrkeen@programming.dev to Programmer Humor@programming.dev · 1 year agoThe Holy Trinity of JavaScriptprogramming.devimagemessage-square17fedilinkarrow-up1101arrow-down14
arrow-up197arrow-down1imageThe Holy Trinity of JavaScriptprogramming.devcmdrkeen@programming.dev to Programmer Humor@programming.dev · 1 year agomessage-square17fedilink
minus-squarezqwzzle@lemmy.calinkfedilinkEnglisharrow-up2·edit-21 year ago=== is just == with extra steps
minus-squarethanks_shakey_snake@lemmy.calinkfedilinkarrow-up1·1 year 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.