DEV Community

Discussion on: Undefined vs Null in JavaScript

Collapse
 
francescoxx profile image
Francesco Ciulla

yes, it is just the return value of typeof(null), an old well known bug. Thanks for noticing it Logan, I will see if it can be said in a better way

Collapse
 
piguicorn profile image
LogUI 🌈

That link helps, thank you!

Thread Thread
 
nickytonline profile image
Nick Taylor • Edited

I think you'd both find this conversation interesting. Sinder makes some valid points for eradicating null even if some native APIs return null.

It's highly unlikely that null will be leaving the language, but regardless, there are still interesting convos in that GitHub issue.