JavaScript still calls null an object
Ah, the beauty of legacy code that can never be fixed. Due to a rushed implementation in the early days of JavaScript, checking the type of an absolutely empty 'null' value returns 'object', a legendary bug that is now permanent because fixing it would break the entire digital world.

Keep exploring facts in this topic.
Technology →


![Why [] + [] becomes an empty string](https://cdn.stackyfacts.com/images/d1aa02bf-a013-4e2f-8dcf-21df6e97df10_back.jpg)

