@tfm@europe.pub to Programmer Humor@programming.devEnglish • 7 days agoTrue crimeeurope.pubimagemessage-square56fedilinkarrow-up1325arrow-down113
arrow-up1312arrow-down1imageTrue crimeeurope.pub@tfm@europe.pub to Programmer Humor@programming.devEnglish • 7 days agomessage-square56fedilink
minus-square@shape_warrior_t@programming.devlinkfedilinkEnglish5•6 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-square@ulterno@programming.devlinkfedilinkEnglish-1•6 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.