Section 8.5. Constructor Functions


8.5. Constructor Functions

A 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.




JavaScript. The Definitive Guide
JavaScript: The Definitive Guide
ISBN: 0596101996
EAN: 2147483647
Year: 2004
Pages: 767

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net