Doesn't a property differ from a key?

Hey,

I’m doing “Record Collection” exercise.

I have questions concerning the text content of this exercise.
1.
If prop does not contain the key “tracks”, then update or set the value for that incomplete prop.

How to set the value If prop does not contain the key "tracks" ?
It’s not a value if there’s no key right? If there’s no key how could we tell if it’s value? It could be a key as well. That sentence makes no sense to me.

Could anybody clarify what is expected in this exercise and if the words are put right here?

If there is no key, the value of that key is undefined. JS won’t throw an error at you for accessing a key that doesn’t exist.

1 Like