Answer by Felix Kling for javascript null returns object when used with...
Because the specification says so:Table 20 — typeof Operator Results Type of val Result--------------------------- Undefined "undefined" Null "object" Boolean "boolean" Number "number" String "string"...
View ArticleAnswer by Carlos Calla for javascript null returns object when used with...
In the first implementation of JavaScript, JavaScript values were represented as a type tag and a value. The type tag for objects was 0. null was represented as the NULL pointer (0x00 in most...
View ArticleAnswer by Amit Joki for javascript null returns object when used with typeof...
It is status-by-design. In Javascript null is an objectKiro Risk saysThe reasoning behind this is that null, in contrast with undefined, was (and still is) often used where objects appear. In other...
View Articlejavascript null returns object when used with typeof operator
Why does typeof return object when used with null? From my understanding this is a top level property of the global object. References to official documentation would greatly help.
View Article