Introduction to Multiple Values
Primitives like Strings and Numbers only hold a single piece of data at a time. If we only had primitives, keeping track of 100 students would mean declaring 100 variables!
JavaScript solves this via Data Structures: specialized formats for organizing and storing multiple pieces of data efficiently.
The two foundational Data Structures natively built into JavaScript are:
- Arrays: For ordered lists.
- Objects: For detailed, key-value mappings.