links: [[YDK JS Chapter 2]]
---
In JS, a **primitive** (primitive value, primitive data type) is data that is not an *object* and has *no methods*
There are 6 primitives in JS
1. undefined
2. null (special case)
3. string
4. number
5. bigint
6. boolean
7. [[Symbol]]
All primitives are immutable, i.e., they cannot be altered. Don't confuse variables with primitives. variables can be re assigned but the existing value cannot be changed like array, object or function
### Primitive Wrapper Objects
All primitives except for null and undefined have object equivalents, that wrap around primitive values
---
tags: #fundamentals
source: [https://developer.mozilla.org/en-US/docs/Glossary/Primitive](JS Primitives)
TODO:
- [ ] read about null from the source