When I have an object and I want to refer to a property within it, I can use e.g.
objectName.propertyName
and when I have a \"subproperty\" I
Use the bracket notation:
var myvar = 'qwertz'; var result = objectName[myvar].propertyName; // equivalent to objectName.qwertz.propertyName