#dev/undone Q
(Q)Is null a primitive data type in JS?
lunacer
2020. 6. 3. 13:19
About null.
https://developer.mozilla.org/en-US/docs/Glossary/Primitive
Primitive
In JavaScript, a primitive (primitive value, primitive data type) is data that is not an object and has no methods. There are 6 primitive data types: string, number, bigint, boolean, undefined, and symbol. There also is null, which is seemingly primitive
developer.mozilla.org
"There also is null, which is seemingly primitive, but indeed is a special case for every Object: and any structured type is derived from null by the Prototype Chain."
but I saw many people count null as one of the primitive data. include Traversy media.
https://www.youtube.com/watch?v=hdI2bqOjy3c&list=PLillGF-RfqbbnEGy3ROiLWk7JMCuSyQtX&index=1