Skip to main content

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:

  1. Arrays: For ordered lists.
  2. Objects: For detailed, key-value mappings.