- 1
- 2
- Table of Contents
- Table of Contents
- BackCover
- Learn How to Program Using Any Web Browser
- Foreword
- Chapter 1: Getting Started
- What Is Programming?
- Why Learn to Program?
- What Approach This Book Takes
- Understanding the Conventions and Icons
- Let s Talk Some More About JavaScript
- What Tools Do You Need?
- Writing and Running Your First Program
- Contacting the Author
- What s It All About?
- Chapter 2: Understanding Types, Variables, and Statements
- Understanding Types
- Understanding Variables
- Understanding Statements
- Understanding Operators
- Understanding Blocks
- What s It All About?
- Chapter 3: Using Conditional Statements
- Understanding Conditional Expressions
- Using If Statements
- Converting to Boolean
- Building the Rock, Scissors, and Paper Game
- Using Switch Case Statements
- What s It All About?
- Chapter 4: Working with Loops
- Creating a Prompt
- Working with For Statements
- Understanding While Statements
- Doing the DoWhile Thing
- Trimming a Tree with Nested Loops
- What s It All About?
- Chapter 5: Understanding Functions
- Creating a Function
- Using a Function s Arguments Array
- Don t Curse: Be Recursive
- Working with Window Methods
- What s It All About?
- Chapter 6: Programming with Arrays
- Creating an Array
- Reading and Writing Array Elements
- Adding and Removing Array Elements
- Iterating Through an Array
- Implementing a Stack As an Array
- Understanding Arrays of Arrays
- Using Array Methods
- Making Weird Comparisons
- Using the Form Elements Array
- What s It All About?
- Chapter 7: Working with Objects
- Understanding Object-Oriented Programming
- JavaScript OO Lite
- Creating Objects
- Creating an OO Auction
- What s It All About?
- Chapter 8: Understanding Events and Event-Driven Programming
- JavaScript Objects and Event Handlers
- Event Triggers
- An Example Using the Event Object
- Canceling a Form Submission
- Eavesdropping on Events
- Firing Your Own Events
- As Time Goes By
- Extending Tchatshke Gulch with a Timer
- What s It All About?
- Chapter 9: Manipulating Strings
- Using String Methods
- Converting a String to Upper Case
- Getting Playful with Strings
- Regular Expressions
- What s It All About?
- Chapter 10: Debugging and Exceptions
- The Different Kinds of Bugs
- JavaScript Syntax Errors
- Finding Bugs
- Exception Handling
- 1
- 2


