Data Types
Last Updated: 01 Oct 2025
The type of data stored in a variable is called its data type. In JavaScript, Data Types are classified into two categories:
- Primitive Types
- Reference Types
Primitive Types
Primitive types are immutable and cannot be changed once they are created.They store only a single value at a time.
Reference Types
Reference types are mutable and can be changed once they are created. They store multiple values at a time.