8
Objects, Classes, and Object-Oriented Programming
WHAT'S IN THIS CHAPTER?
- Understanding objects
- Understanding object creation
- Understanding inheritance
- Understanding classes
ECMA-262 defines an object as an unordered collection of properties. Strictly speaking, this means that an object is an array of values in no particular order. Each property or method is identified by a name that is mapped to a value. For this reason (and others yet to be discussed), it helps to think of ECMAScript objects as hash tables: nothing more than a grouping of name-value pairs where the value may be data or a function.