What Are Object Properties?
The term property refers to a characteristic of an object. An example of an object would be an array. A property of an array would be its
- Inside object literals when the object is being declared and initialized
- Or after declaration using dot-syntax
Here is an example of an object literal:
And here is an example of dot-syntax:
employee.dob = "March 1, 1994";