# Shallow Copy

A new collection that still shares the items inside it with the original.

## What is **Shallow Copy** in JavaScript?

**Shallow Copy** — A new collection that still shares the items inside it with the original.

```javascript
const order = { item: "tea", quantity: 1 };
const updatedOrder = { ...order, quantity: 2 };
```

Level: Freelancer · [More JavaScript terms at this level](https://www.ask-codey.com/glossary/subjects/javascript/freelancer)

Updated: September 27, 2026

Source: https://www.ask-codey.com/glossary/shallow-copy-javascript
