@[email protected] to Programmer [email protected] • 3 months 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] • 3 months agomessage-square83fedilinkcross-posted to: [email protected]
minus-square@[email protected]linkfedilink14•3 months 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-23 months agoTony Hoare: “Introducing NULL was a billion-dollar mistake” Brendan Eich: “Hold my undefined”
minus-square@[email protected]linkfedilink21•3 months 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
?