8.5. Constructor FunctionsA constructor function is a function that initializes the properties of an object and is intended for use with the new operator. Constructors are covered in detail in Chapter 9. Briefly, however: the new operator creates a new object and then invokes the constructor function, passing the newly created object as the value of the this keyword. |