Books & Videos

Table of Contents

  1. Fundamentals

    1. Chapter 1 What Is JavaScript?

      1. Meet JavaScript
      2. Why Learn JavaScript?
      3. Writing Some JavaScript
      4. The Structure of a JavaScript Program
      5. What You Learned
    2. Chapter 2 Data Types and Variables

      1. Numbers and Operators
      2. Variables
      3. Strings
      4. Booleans
      5. undefined and null
      6. What You Learned
    3. Chapter 3 Arrays

      1. Why Should You Care About Arrays?
      2. Creating an Array
      3. Accessing an Array’s Elements
      4. Setting or Changing Elements in an Array
      5. Mixing Data Types in an Array
      6. Working with Arrays
      7. Useful Things to Do with Arrays
      8. What You Learned
    4. Chapter 4 Objects

      1. Creating Objects
      2. Accessing Values in Objects
      3. Adding Values to Objects
      4. Combining Arrays and Objects
      5. Exploring Objects in the Console
      6. Useful Things to Do with Objects
      7. What You Learned
    5. Chapter 5 The Basics of HTML

      1. Text Editors
      2. Our First HTML Document
      3. Tags and Elements
      4. A Full HTML Document
      5. HTML Hierarchy
      6. Adding Links to Your HTML
      7. What You Learned
    6. Chapter 6 Conditionals and Loops

      1. Embedding JavaScript in HTML
      2. Conditionals
      3. Loops
      4. What You Learned
    7. Chapter 7 Creating a Hangman Game

      1. Interacting with a Player
      2. Designing Your Game
      3. Coding the Game
      4. The Game Code
      5. What You Learned
    8. Chapter 8 Functions

      1. The Basic Anatomy of a Function
      2. Creating a Simple Function
      3. Calling a Function
      4. Passing Arguments into Functions
      5. Returning Values from Functions
      6. Using Function Calls as Values
      7. Using Functions to Simplify Code
      8. Leaving a Function Early with return
      9. Using return Multiple Times Instead of if...else Statements
      10. What You Learned
  2. Advanced JavaScript

    1. Chapter 9 The DOM and jQuery

      1. Selecting DOM Elements
      2. Using jQuery to Work with the DOM Tree
      3. Creating New Elements with jQuery
      4. Animating Elements with jQuery
      5. Chaining jQuery Animations
      6. What You Learned
    2. Chapter 10 Interactive Programming

      1. Delaying Code with setTimeout
      2. Canceling a Timeout
      3. Calling Code Multiple Times with setInterval
      4. Animating Elements with setInterval
      5. Responding to User Actions
      6. What You Learned
    3. Chapter 11 Find the Buried Treasure!

      1. Designing the Game
      2. Creating the Web Page with HTML
      3. Picking a Random Treasure Location
      4. The Click Handler
      5. Putting It All Together
      6. What You Learned
    4. Chapter 12 Object-Oriented Programming

      1. A Simple Object
      2. Adding Methods to Objects
      3. Creating Objects Using Constructors
      4. Drawing the Cars
      5. Testing the drawCar Function
      6. Customizing Objects with Prototypes
      7. What You Learned
  3. Canvas

    1. Chapter 13 The Canvas Element

      1. Creating a Basic Canvas
      2. Drawing on the Canvas
      3. Changing the Drawing Color
      4. Drawing Rectangle Outlines
      5. Drawing Lines or Paths
      6. Filling Paths
      7. Drawing Arcs and Circles
      8. Drawing Lots of Circles with a Function
      9. What You Learned
    2. Chapter 14 Making Things Move on the Canvas

      1. Moving Across the Page
      2. Animating the Size of a Square
      3. A Random Bee
      4. Bouncing a Ball!
      5. What You Learned
    3. Chapter 15 Controlling Animations with the Keyboard

      1. Keyboard Events
      2. Moving a Ball with the Keyboard
      3. Putting It All Together
      4. Running the Code
      5. What You Learned
    4. Chapter 16 Making a Snake Game: Part 1

      1. The Game Play
      2. The Structure of the Game
      3. Game Setup
      4. Drawing the Border
      5. Displaying the Score
      6. Ending the Game
      7. What You Learned
    5. Chapter 17 Making a Snake Game: Part 2

      1. Building the Block Constructor
      2. Creating the Snake
      3. Moving the Snake
      4. Setting the Snake’s Direction with the Keyboard
      5. Creating the Apple
      6. Putting It All Together
      7. What You Learned
  1. Appendix Afterword: Where To Go From Here

    1. More JavaScript

    2. Web Programming

    3. Graphical Programming

    4. 3D Programming

    5. Programming Robots

    6. Audio Programming

    7. Game Programming

    8. Sharing Your Code Using JSFiddle

  2. Appendix Glossary

  3. Appendix Updates

    1. More Smart Books for Curious Kids!

  4. Appendix For Kids Aged 10+ (and their Parents)

    1. About the Author