1. The object in JS is a compound value: it aggregates a number of values together, which can be accessed by name. Objects can also be considered an unordered collection of properties, each of which is a name/value pair. The property name is a string, so we think of the object as a mapping from string to value. There are many other names for this mapping data structure, such as hash tables, dictionaries, associative arrays.
2. JS objects can inherit properties from an object called a prototype (Ptototype), in addition to maintaining their own properties. This prototype inheritance is the core feature of JS.
3. In addition to string, Number, Boolean (True, false), null and undefined, the value in JS is an object. Although strings, numbers, and Booleans are not objects, they behave very similar to non-object objects.
4. We manipulate objects by reference, not by value. If Object x is a reference to an object, execute the code var y = x; The variable y is also a reference to the same object, not a copy of the object. Modifying this object through the variable y also affects the variable x.
5. The properties of an object include property names, property values, and attribute attributes (property attribute), and it is clear that the first name/value pair is the property name and the property value. The property name can be any string that contains an empty string, and there cannot be two identical property names in an object. The property value can be any type of JS value, and the property value can also be a setter/getter function in ECMAScript5.
6. In addition to the name/value pairs, each attribute of the JS object has 3 values associated with it, called the attribute attribute. Are writable, enumerable, and configurable, respectively. Before ECMAScript5, the object properties created by JS Code are writable, enumerable, configurable. These three properties can be set in ECMAScript5.
7. The JS object has 3 related object attributes, in addition to the properties of the property (object attribute). Is the object's prototype (prototype), the class of the object, and the extended tag of the object (extensible flag).
Preface to the 6th chapter of the subject