# Shallow Copy

*noun*

say it: **“SHAL-oh KOP-ee”** **/ˈʃæloʊ ˈkɒpi/**

A copy of an array or object where only the top layer is new. Any arrays or objects inside it are shared with the original, so changing them shows up in both.

## 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 };
```

## In a sentence

- “My **shallow copy** of the pet had its own name, but its list of favorite toys was still the original list.”

Level: Freelancer · [More JavaScript terms at this level](https://www.ask-codey.com/glossary?category=javascript&level=4)

Updated: November 9, 2026

## In other subjects

- [Shallow Copy in Python](https://www.ask-codey.com/glossary/shallow-copy)
- [Shallow Copy in Software Development](https://www.ask-codey.com/glossary/shallow-copy-software-development)

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