@[email protected] to Programmer [email protected] • 21 hours agoWhich of these javascript expressions is false?lemmy.mlimagemessage-square51fedilinkarrow-up1308cross-posted to: [email protected]
arrow-up1308imageWhich of these javascript expressions is false?lemmy.ml@[email protected] to Programmer [email protected] • 21 hours agomessage-square51fedilinkcross-posted to: [email protected]
minus-square@[email protected]linkfedilink8•17 hours agotypeof null === "object" was actually a bug in the early implementations, and they decided to keep it in the spec: https://2ality.com/2013/10/typeof-null.html (see the comment from Brendan Eich)
minus-square@[email protected]linkfedilinkEnglish12•edit-214 hours agoTony Hoare: “Introducing NULL was a billion-dollar mistake” Brendan Eich: “Hold my undefined”
minus-square@[email protected]linkfedilink13•13 hours agoWe had one null, yes. But what about second null?
typeof null === "object"
was actually a bug in the early implementations, and they decided to keep it in the spec: https://2ality.com/2013/10/typeof-null.html(see the comment from Brendan Eich)
Tony Hoare: “Introducing NULL was a billion-dollar mistake”
Brendan Eich: “Hold my undefined”
We had one
null
, yes. But what about secondnull
?