Monday, 26 August 2013

The different between 'attribute', 'member' and 'property' for javascript objects

The different between 'attribute', 'member' and 'property' for javascript
objects

A JavaScript object in a key-value structure and the key portion is called
attribute. Would it be wrong if I called it a member or a property? If so,
what are the differences?
So I have learned that a property is one kind of member from this answer,
but this is for C#. Does the same rule apply for Javascript? I want to say
that member == property in Javascript. Please tell me why I would be
wrong.

No comments:

Post a Comment