Bracket Notation
Accessing an object property with a key expression inside square brackets.
What is Bracket Notation in JavaScript?
Bracket Notation — Accessing an object property with a key expression inside square brackets.
const order = { item: "tea" };
const key = "item";
const item = order[key];
Level: Apprentice · More JavaScript terms at this level
Updated