object property named string javascript code example
Example 1: js create object with properties
var mycar = new Car('Eagle', 'Talon TSi', 1993);
Example 2: javascript object string property
// Also useful for dynamic strings, e.g. `thing-${variable}`
myObject['thing'] = true;