The Principles of Object-Oriented JavaScript

Book description

The Principles of Object-Oriented JavaScript helps experienced programmers understand JavaScript's unique approach to object-oriented programming so they can tackle their problems effectively, and with less code.

Table of contents

  1. About the Author
  2. About the Technical Reviewer
  3. Foreword
  4. Acknowledgments
  5. Introduction
    1. Who This Book Is For
    2. Overview
    3. Help and Support
  6. 1. Primitive and Reference Types
    1. What Are Types?
    2. Primitive Types
      1. Identifying Primitive Types
      2. Primitive Methods
    3. Reference Types
      1. Creating Objects
      2. Dereferencing Objects
      3. Adding or Removing Properties
    4. Instantiating Built-in Types
      1. Literal Forms
      2. Object and Array Literals
      3. Function Literals
      4. Regular Expression Literals
    5. Property Access
    6. Identifying Reference Types
    7. Identifying Arrays
    8. Primitive Wrapper Types
    9. Summary
  7. 2. Functions
    1. Declarations vs. Expressions
    2. Functions as Values
    3. Parameters
    4. Overloading
    5. Object Methods
      1. The this Object
      2. Changing this
        1. The call() Method
        2. The apply() Method
        3. The bind() Method
    6. Summary
  8. 3. Understanding Objects
    1. Defining Properties
    2. Detecting Properties
    3. Removing Properties
    4. Enumeration
    5. Types of Properties
    6. Property Attributes
      1. Common Attributes
      2. Data Property Attributes
      3. Accessor Property Attributes
      4. Defining Multiple Properties
      5. Retrieving Property Attributes
    7. Preventing Object Modification
      1. Preventing Extensions
      2. Sealing Objects
      3. Freezing Objects
    8. Summary
  9. 4. Constructors and Prototypes
    1. Constructors
    2. Prototypes
      1. The [[Prototype]] Property
      2. Using Prototypes with Constructors
      3. Changing Prototypes
      4. Built-in Object Prototypes
    3. Summary
  10. 5. Inheritance
    1. Prototype Chaining and Object.prototype
      1. Methods Inherited from Object.prototype
        1. valueOf()
        2. toString()
      2. Modifying Object.prototype
    2. Object Inheritance
    3. Constructor Inheritance
    4. Constructor Stealing
    5. Accessing Supertype Methods
    6. Summary
  11. 6. Object Patterns
    1. Private and Privileged Members
      1. The Module Pattern
      2. Private Members for Constructors
    2. Mixins
    3. Scope-Safe Constructors
    4. Summary
  12.  
    1. Index
  13. About the Author
  14. Copyright

Product information

  • Title: The Principles of Object-Oriented JavaScript
  • Author(s): Nicholas C. Zakas
  • Release date: February 2014
  • Publisher(s): No Starch Press
  • ISBN: 9781593275402