Remember the difference between bracket and dot notations. The contents of brackets are evaluated before the lookup is completed, so if you have a variable you want to put the variable name in brackets so the property looked up is that variable’s value. When you use dot notation, you are attempting to lookup a property with a name matching the dot-ed property as a literal string.