tfm@europe.pub to Programmer Humor@programming.devEnglish · 3 months agoTrue crimeeurope.pubimagemessage-square74linkfedilinkarrow-up1339arrow-down113
arrow-up1326arrow-down1imageTrue crimeeurope.pubtfm@europe.pub to Programmer Humor@programming.devEnglish · 3 months agomessage-square74linkfedilink
minus-squareshape_warrior_t@programming.devlinkfedilinkEnglisharrow-up5·3 months agoa === b returns true if a and b have the same type and are considered equal, and false otherwise. If a is null and b is a boolean, it will simply return false.
minus-squareulterno@programming.devlinkfedilinkEnglisharrow-up0arrow-down1·3 months agoI see, so logically it is fine. Just not in the context.
a === breturns true ifaandbhave the same type and are considered equal, and false otherwise. Ifaisnullandbis a boolean, it will simply return false.I see, so logically it is fine.
Just not in the context.