JavaScript có 7 primitive types:
- string
- number
- boolean
- null
- undefined
- symbol
- bigint
Primitive được copy theo giá trị.
Ví dụ: let a = 5; let b = a; b = 10; thì a vẫn là 5.
Khác với object và array (copy theo tham chiếu).
Mẹo nhớ: typeof null trả về "object" là bug lịch sử.