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.

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

Updated

In other subjects