bracket notation []

`obj[prop]` syntax.

(property access expression) (🌟 chaining rules | table of operators )

use obj [ prop ] to evaluate an object property / array element.

// ⭐️ bracket notation
obj [ prop ]    // obj: non-nullish, prop: string | symbol (any other value coerced to string)

🈯 synonyms: "computed property access"

Last updated