DEV Community

loading...

Discussion on: Undefined vs Null in JavaScript

Collapse
francescoxx profile image
Francesco Ciulla Author

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
drowvoloper profile image
Logan

That link helps, thank you!

Thread Thread
nickytonline profile image
Nick Taylor (he/him) • 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.