What Is an Object?
Question
Which statement best describes what an object is in programming?
Hint
Objects use named keys, not numeric indexes.
Explanation
An object is a collection of key-value pairs (also called properties) that groups related data under a single name. For example, a user object might have name, age, and email keys. A numbered list accessed by index is an array, not an object. Functions and loops are different constructs entirely.
Related Resources
Related Lessons
- Objects
Learn how objects group related data with keys and values.
Look up unfamiliar terms
A beginner-friendly glossary explains jargon in plain English — variables, functions, DOM, Promise, and more.
Decode error messages
Plain-English explanations of common errors — what they mean, why they happen, and how to fix them.
Build real projects
Apply what you learned by building guided projects with starter code and solutions.