# Bracket Notation

*noun*

say it: **“BRAK-it noh-TAY-shun”** **/ˈbrækɪt noʊˈteɪʃən/**

Reading or changing a property of a JavaScript object by putting its name, as text or a variable, in square brackets, such as pet\['species'\] or pet\[field\].

## What is **Bracket Notation** in JavaScript?

**Bracket Notation** — Accessing an object property with a key expression inside square brackets.

```javascript
const order = { item: "tea" };
const key = "item";
const item = order[key];
```

## In a sentence

- “The user picked which column to sort by, so I read it with **bracket notation**: pet\[field\].”

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

Updated: November 9, 2026

Source: https://www.ask-codey.com/glossary/bracket-notation
