@[email protected] to Programmer [email protected] • 1 month agoWhich of these javascript expressions is false?lemmy.mlimagemessage-square83fedilinkarrow-up1499cross-posted to: [email protected]
arrow-up1499imageWhich of these javascript expressions is false?lemmy.ml@[email protected] to Programmer [email protected] • 1 month agomessage-square83fedilinkcross-posted to: [email protected]
minus-square@[email protected]linkfedilink14•1 month 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]linkfedilinkEnglish18•edit-21 month agoTony Hoare: “Introducing NULL was a billion-dollar mistake” Brendan Eich: “Hold my undefined”
minus-square@[email protected]linkfedilink21•1 month 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
?