The principles of object-oriented Javascript
If you've used a more traditional object-oriented language, such as C++ or Java, JavaScript probably doesn't seem object-oriented at all. It has no concept of classes, and you don't even need to define any objects in order to write code. But don't be fooled—JavaScript is an incre...
Saved in:
| Main Author: | |
|---|---|
| Format: | eBook Book |
| Language: | English |
| Published: |
San Francisco
No Starch Press, Inc
2014
No Starch Press No Starch Press, Incorporated |
| Edition: | 1 |
| Subjects: | |
| ISBN: | 9781593275402, 1593275404, 145718530X, 9781457185304 |
| Online Access: | Get full text |
| Tags: |
Add Tag
No Tags, Be the first to tag this record!
|
Table of Contents:
- The principles of object-oriented Javascript -- About the Author; About the Technical Reviewer -- Brief Contents -- Contents in Detail -- Foreword -- Acknowledgments -- Introduction -- 1. Primitive and Reference Types -- 2. Functions -- 3. Understanding Objects -- 4. Constructors and Prototypes -- 5. Inheritance -- 6. Object Patterns -- Index -- Updates.
- Intro -- The Principles of Object-Oriented Javascript -- -- About the Author -- About the Technical Reviewer -- Foreword -- Acknowledgments -- Introduction -- Who This Book Is For -- Overview -- Help and Support -- 1. Primitive and Reference Types -- What Are Types? -- Primitive Types -- Identifying Primitive Types -- Primitive Methods -- Reference Types -- Creating Objects -- Dereferencing Objects -- Adding or Removing Properties -- Instantiating Built-in Types -- Literal Forms -- Object and Array Literals -- Function Literals -- Regular Expression Literals -- Property Access -- Identifying Reference Types -- Identifying Arrays -- Primitive Wrapper Types -- Summary -- 2. Functions -- Declarations vs. Expressions -- Functions as Values -- Parameters -- Overloading -- Object Methods -- The this Object -- Changing this -- Summary -- 3. Understanding Objects -- Defining Properties -- Detecting Properties -- Removing Properties -- Enumeration -- Types of Properties -- Property Attributes -- Common Attributes -- Data Property Attributes -- Accessor Property Attributes -- Defining Multiple Properties -- Retrieving Property Attributes -- Preventing Object Modification -- Preventing Extensions -- Sealing Objects -- Freezing Objects -- Summary -- 4. Constructors and Prototypes -- Constructors -- Prototypes -- The [[Prototype]] Property -- Using Prototypes with Constructors -- Changing Prototypes -- Built-in Object Prototypes -- Summary -- 5. Inheritance -- Prototype Chaining and Object.prototype -- Methods Inherited from Object.prototype -- Modifying Object.prototype -- Object Inheritance -- Constructor Inheritance -- Constructor Stealing -- Accessing Supertype Methods -- Summary -- 6. Object Patterns -- Private and Privileged Members -- The Module Pattern -- Private Members for Constructors -- Mixins -- Scope-Safe Constructors -- Summary -- -- Index
- About the Author -- Copyright
- Private Members for Constructors -- Mixins -- Scope-Safe Constructors -- Summary -- Index -- About the Author -- Copyright
- Intro -- The Principles of Object-Oriented Javascript -- About the Author -- About the Technical Reviewer -- Foreword -- Acknowledgments -- Introduction -- Who This Book Is For -- Overview -- Help and Support -- 1. Primitive and Reference Types -- What Are Types? -- Primitive Types -- Identifying Primitive Types -- Primitive Methods -- Reference Types -- Creating Objects -- Dereferencing Objects -- Adding or Removing Properties -- Instantiating Built-in Types -- Literal Forms -- Object and Array Literals -- Function Literals -- Regular Expression Literals -- Property Access -- Identifying Reference Types -- Identifying Arrays -- Primitive Wrapper Types -- Summary -- 2. Functions -- Declarations vs. Expressions -- Functions as Values -- Parameters -- Overloading -- Object Methods -- The this Object -- Changing this -- The call() Method -- The apply() Method -- The bind() Method -- Summary -- 3. Understanding Objects -- Defining Properties -- Detecting Properties -- Removing Properties -- Enumeration -- Types of Properties -- Property Attributes -- Common Attributes -- Data Property Attributes -- Accessor Property Attributes -- Defining Multiple Properties -- Retrieving Property Attributes -- Preventing Object Modification -- Preventing Extensions -- Sealing Objects -- Freezing Objects -- Summary -- 4. Constructors and Prototypes -- Constructors -- Prototypes -- The [[Prototype]] Property -- Using Prototypes with Constructors -- Changing Prototypes -- Built-in Object Prototypes -- Summary -- 5. Inheritance -- Prototype Chaining and Object.prototype -- Methods Inherited from Object.prototype -- valueOf() -- toString() -- Modifying Object.prototype -- Object Inheritance -- Constructor Inheritance -- Constructor Stealing -- Accessing Supertype Methods -- Summary -- 6. Object Patterns -- Private and Privileged Members -- The Module Pattern

