es6 access object property dot notation code example
Example 1: javascript object string property
// Also useful for dynamic strings, e.g. `thing-${variable}`
myObject['thing'] = true;
Example 2: nodejs how to use dynamic variable after dot
model.car // static way
const myDynamicVariable = 'car'
model[myDynamicVariable] // works like model.car - here you can dynamicly use a variable after dot