tfm@europe.pub to Programmer Humor@programming.devEnglish · 3 days agoTrue crimeeurope.pubimagemessage-square68fedilinkarrow-up1327arrow-down113
arrow-up1314arrow-down1imageTrue crimeeurope.pubtfm@europe.pub to Programmer Humor@programming.devEnglish · 3 days agomessage-square68fedilink
minus-squareshape_warrior_t@programming.devlinkfedilinkEnglisharrow-up5·2 days 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·2 days agoI see, so logically it is fine. Just not in the context.
a === b
returns true ifa
andb
have the same type and are considered equal, and false otherwise. Ifa
isnull
andb
is a boolean, it will simply return false.I see, so logically it is fine.
Just not in the context.