Help with Everything be True challenge

Help with Everything be True challenge
0

#1

Not sure what’s wrong here, I am not able to use the 2nd argument to reference the property in the first argument but if I were to use the exact string, I can reference it. I have reset the browser and tried it in IE and Chrome but still can’t figure out what’s wrong. Your help is appreciated. Thank you


#2

You can’t use dot notation like that. If you want to access a property using a value stored in a variable, you have to use bracket notation:

collection[0][pre]