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 the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.