# Unpacking Data in JavaScript

Unpacking Data in JavaScript: Destructuring, Spread and Rest.

Updated: November 15, 2026

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.

Source: https://www.ask-codey.com/courses/javascript-in-depth/topics/javascript-unpacking
