HOUR 16:Debugging JavaScript Applications

What You’ll Learn in This Hour:

• Using good programming practices to avoid bugs

• Tips for debugging with the JavaScript console

• Using alert messages and comments to debug scripts

• Creating custom error handlers

• Using advanced debugging tools

• Debugging an actual script

As you move on to more advanced JavaScript applications in the remaining hours of this book, it’s important to know how to deal with problems in your scripts. In this hour, you’ll learn a few pointers on keeping your scripts bug-free, and you’ll look at the tools and techniques you can use to find and eliminate bugs when they occur.

Avoiding Bugs

A bug is an error in a program that prevents it from ...

Get Sams Teach Yourself JavaScript in 24 Hours now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.