Properties vs. Keys vs. Values in JavaScript
javascript
Solution
They don't have a precise meaning, especially "property" is ambiguous.
The term property (also: attribute, less common or even used for different things in JS) usually refers to the key/value pair that describes a member of an object. While, especially when used with a specific identifier (key), it often refers to the whole combination, it can also denote the value of that member. It does usually not mean the identifier itself.
When people try to be accurate, they distinguish between "property" (the whole thing, part of an object), "property name" (the string used as the key) and "property value" (the stored data).
Problem
I'm trying to clarify my understanding of the terms "property" vs. "keys" vs. "values" in the JavaScript realm. After reading a few books on the language and even googling the terms, I still don't feel like I'm clear on their precise meaning. So suppose we have the following: ``` var object = {"name" : 5}; ``` Is my understanding of the following terms correct: property refers to "name" key refers to "name" value refers to 5 I'm most concerned about "property": does it refer to identifiers only, or to the whole name/value pair?