# Key-Value Pair

*noun*

say it: **“KEE VAL-yoo PAIR”** **/kiː ˈvæljuː pɛər/**

A name (the key) and the value stored under it, written key: value inside a JavaScript object, such as species: 'cat'.

## What is **Key-Value Pair** in JavaScript?

**Key-Value Pair** — One entry in a dictionary: a key and the value stored under it.

```javascript
const order = { item: "tea" };
const item = order.item;
```

## In a sentence

- “Each line in the pet object, like ageYears: 2, is one **key-value pair**.”

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

Updated: November 9, 2026

## In other subjects

- [Key-Value Pair in C#](https://www.ask-codey.com/glossary/key-value-pair-c-sharp)
- [Key-Value Pair in Data Structures](https://www.ask-codey.com/glossary/key-value-pair-data-structures)
- [Key-Value Pair in Python](https://www.ask-codey.com/glossary/key-value-pair)
- [Key-Value Pair in Unix](https://www.ask-codey.com/glossary/key-value-pair-unix)

Source: https://www.ask-codey.com/glossary/key-value-pair-javascript
