Why (typeof null) returns an object in JavaScript?
Lets discuss and understand this well known bug in JavaScript that was kept intentionally due to compatibility and existing flow of the code.null is a primitive value in JavaScript. console.log(typeof "MyName"); // string console.log(typeof true); ...
Aug 4, 20252 min read


