+ 1
The NULL is object or primitive?
There is people say that NULL is object and others say it's primitive !! What the true and if it's object or primitive explain why
6 odpowiedzi
+ 3
Its an historical consequence by the fact than null was represented like an object in internal representation and not more changed for dont break old codes.... See here http://2ality.com/2013/10/typeof-null.html
+ 2
👍👍👍
+ 1
Primitive according to MDN.
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/null
+ 1
KrOW thank you much
0
Why then when I write typeof NULL... the output is object ? Jomari Pantorilla
0
How it represents the intentional absence of any object value ?