cmdrkeen@programming.dev to Programmer Humor@programming.dev · 9 months agoThe Holy Trinity of JavaScriptprogramming.devimagemessage-square20fedilinkarrow-up11arrow-down10
arrow-up11arrow-down1imageThe Holy Trinity of JavaScriptprogramming.devcmdrkeen@programming.dev to Programmer Humor@programming.dev · 9 months agomessage-square20fedilink
minus-squarezqwzzle@lemmy.calinkfedilinkEnglisharrow-up0·edit-29 months ago=== is just == with extra steps
minus-squarethanks_shakey_snake@lemmy.calinkfedilinkarrow-up0·9 months 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.