'Is ES6 dynamic object property or plain bracket notation being used here?
In this video around 16:00 the instructor says dynamic object property syntax is being used (total[language]). It seems like it's just regular setting a property on an object using a variable, which here is (destructured from the repo object, the current item being iterated over in the reduce method) language. Did he make a mistake calling it a dynamic object property or am I missing something?

Solution 1:[1]
The reason why they called it a dynamic property is because from the perspective of the total object - the language variable that is being passed in as a key can contain any value during the application runtime, hence hypothetically any property can be accessed at different runs - making it dynamic.
So the instructor was correct as there is no other official term to name a variable that is used as a property accessor.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 |
