# Objects: Grouping Related Data

An object keeps everything about one thing together: a pet's name, age and breed. Build objects, keep lists of them, unpack them with destructuring, and copy and combine them with spread.

Updated: November 15, 2026

## [Objects in JavaScript](https://www.ask-codey.com/courses/javascript-in-depth/topics/javascript-objects)

1. [What Is an Object](https://www.ask-codey.com/lessons/javascript-objects-what-is-an-object) (Novice): An object keeps everything about one thing together under labels, like a form with labeled boxes, so you can read, change and list a pet's name, age and more by name.
2. [Arrays of Objects](https://www.ask-codey.com/lessons/javascript-objects-arrays-of-objects) (Apprentice): An array of objects is a list of records, like a stack of filled-in forms, and it's how programs keep search results, carts and listings that you read, loop over and update.

## [Unpacking Data in JavaScript](https://www.ask-codey.com/courses/javascript-in-depth/topics/javascript-unpacking)

1. [Destructuring](https://www.ask-codey.com/lessons/javascript-unpacking-destructuring) (Apprentice): Destructuring unpacks the values you need from an object or an array into variables in one line, with defaults for anything missing and new names when you want them.
2. [Spread and Rest](https://www.ask-codey.com/lessons/javascript-unpacking-spread-and-rest) (Apprentice): Assigning an object to a new variable doesn't copy it, so this lesson shows how spread makes real copies and merges, and how rest gathers any number of values into one.

## [Exercise: Pet Adoption Profiles](https://www.ask-codey.com/courses/javascript-in-depth/topics/exercise-javascript-pet-adoption-profiles)

1. [Exercise: Pet Adoption Profiles](https://www.ask-codey.com/lessons/exercise-javascript-pet-adoption-profiles) (Apprentice): Finish five functions for a pet adoption site, building profile lines with destructuring and safe copies with spread, and let the tests check each one.

Source: https://www.ask-codey.com/courses/javascript-in-depth/chapters/objects-in-javascript
