I was reading a article about front-end development on Medium, when I stumbled upon an interesting piece of information, which is as follows:
The type of a variable can be determined by using the typeof(var_name) function. One thing to note is that typeof(null) returns object. This is a long-standing bug in JS, but one that is likely never going to be fixed. Too much code on the Web relies on the bug and thus fixing it would cause a lot more bugs!
Why so? What kind bugs & code reliability this section is referring to?