Books & Videos

Table of Contents

  1. Chapter 1 Introduction

    1. Scope of This Book

    2. The Language

    3. Learning Environment

    4. Longer Examples

    5. Let’s Get Started

  2. Chapter 2 JavaScript Syntax

    1. Variables

    2. Values

    3. Arrays

    4. Conditions

    5. while and for Loops

    6. for-in Loops

    7. Miscellaneous Operators

  3. Chapter 3 Functions

    1. Default Parameters

    2. Any Number of Arguments

    3. arguments.length Trick

    4. Return Values

    5. Functions Are Objects

    6. A Different Syntax

    7. Scope

    8. Hoisting

    9. Closures

    10. Scope Chain

    11. Immediate Functions

    12. Passing and Returning Functions

  4. Chapter 4 Object-Oriented Programming

    1. Constructors and Classes

    2. Prototypes

    3. Object Literals

    4. Fancy Arrays

    5. Own Properties

    6. Inheritance

  5. Chapter 5 The Built-In API

    1. The Global Object

    2. Global Properties

    3. Global Functions

    4. Built-In Constructors

    5. Constructors Review

  6. Chapter 6 ECMAScript 5

    1. Strict Mode

    2. Property Attributes

    3. New Object APIs

    4. Array Additions

    5. String Trimming

    6. New in Date

    7. Function.prototype.bind()

    8. JSON

    9. Shims

  7. Chapter 7 JavaScript Patterns

    1. Private Properties

    2. Revealing Pattern

    3. Constants

    4. Namespaces

    5. Modules

    6. CommonJS Modules

    7. AMD

    8. Design Patterns

    9. Documentation and Testing

  1. Index

  2. Colophon