Computed property syntax (`[expr]: val`) allows dynamic keys. `Symbol` primitives provide unique, non-colliding property keys.
js
const KEY = Symbol("id");
const obj = { [KEY]: 100, [computeName()]: "value" };100 XP to Apprentice
Dynamic keys, property attributes, and Symbol usage.
AI translates the explanation and quiz text while preserving code and answer scoring.
Computed property syntax (`[expr]: val`) allows dynamic keys. `Symbol` primitives provide unique, non-colliding property keys.
js
const KEY = Symbol("id");
const obj = { [KEY]: 100, [computeName()]: "value" };1. What is guaranteed about Symbol() instances?
2. How do you define a property with a dynamic name?
3. Are Symbol-keyed properties included in Object.keys()?