JavaScript's computed property names allow you to use variables as dynamic keys in object literals, offering a compact and flexible way to define object properties.
For example, by writing let person = { [type]: 'Ray' }, you can dynamically create object keys. This feature has been available since ES6.
Collection
[
|
...
]