🚧 under construction
JS ⟩ value ⟩ primitive
7 primitive data types:
5 with wrapper: String / Number / BigInt / Boolean / Symbol
2 without wrapper:(⚠️ can't call methods, no properties)❗ undefined / null.
7 types of primitives
null / undefined
Boolean / Number / String
BigInt / Symbol
tools
isPrimitive() / isObject()
All primitives are immutable.
null & undefined
have no object wrappers, methods/properties not available.
hava no corresponding prototype either.
👉 isPrimitive()
⭐ sloppy equality (==) / strict equality (===)
JS.info ⟩ Native prototypes ⟩ primitives
Primitive
Symbol's wrapper?
Last updated 2 years ago