# Immutability

The practice of creating new values instead of changing existing ones.

## What is **Immutability** in JavaScript?

**Immutability** — The practice of creating new values instead of changing existing ones.

```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/immutability
