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
- undefined
- null (special case)
- string
- number
- bigint
- boolean
- 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