Books & Videos

Table of Contents

  1. Chapter 1 Basic JavaScript: Values, Variables, and Control Flow

    1. Values

    2. Variables

    3. The Environment

    4. Program Structure

    5. More on Types

  2. Chapter 2 Functions

    1. The Anatomy of a Function Definition

    2. Techniques

  3. Chapter 3 Data Structures: Objects and Arrays

    1. The Problem: Aunt Emily's Cats

    2. Basic Data Structures

    3. Solving the Problem of Aunt Emily's Cats

    4. Some More Theory

  4. Chapter 4 Error Handling

    1. Types of Problems

    2. Handling Errors

    3. Automated Testing

  5. Chapter 5 Functional Programming

    1. Abstraction

    2. Higher-Order Functions

    3. The Sad Story of the Recluse

    4. Other Functional Tricks

  6. Chapter 6 Object-Oriented Programming

    1. Objects

    2. Building an Ecosystem Simulation

    3. A More Lifelike Simulation

    4. Prototypal Inheritance

  7. Chapter 7 Modularity

    1. Modules

    2. The Shape of a Module

    3. Interface Design

    4. Libraries

  8. Chapter 8 Regular Expressions

    1. Syntax

    2. Matching and Replacing

    3. Parsing an .ini File

    4. Conclusion

  9. Chapter 9 Web Programming: A Crash Course

    1. The Internet

    2. Basic Web Scripting

    3. Browser Incompatibility

    4. Further Reading

  10. Chapter 10 The Document Object Model

    1. DOM Elements

    2. Style Sheets

    3. Word of Caution

  11. Chapter 11 Browser Events

    1. Event Handlers

    2. Example: Implementing Sokoban

  12. Chapter 12 HTTP requests

    1. The HTTP Protocol

    2. The XMLHttpRequest API

    3. Learning HTTP

  1. Colophon

  2. Appendix Updates