@cm0002@lemmy.world to Programmer Humor@programming.dev • 2 days agoWhich of these javascript expressions is false?lemmy.mlimagemessage-square78fedilinkarrow-up1488arrow-down110cross-posted to: programmerhumor@lemmy.ml
arrow-up1478arrow-down1imageWhich of these javascript expressions is false?lemmy.ml@cm0002@lemmy.world to Programmer Humor@programming.dev • 2 days agomessage-square78fedilinkcross-posted to: programmerhumor@lemmy.ml
minus-square@FooBarrington@lemmy.worldlinkfedilink14•2 days 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@gnutrino@programming.devlinkfedilinkEnglish19•edit-22 days agoTony Hoare: “Introducing NULL was a billion-dollar mistake” Brendan Eich: “Hold my undefined”
minus-square@FooBarrington@lemmy.worldlinkfedilink22•2 days 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
?