Common JavaScript errors JavaScript


show more JavaScript is a forgiving language, but errors still happen and the code won't run. Learn how to detect and resolve common JavaScript errors using a debugger like Firebug and these handy troubleshooting techniques. show less
please wait ...

Common JavaScript errors

We may be creating web pages, but this is programming, and no matter how good we get, we'll spend less time writing code and more time figuring out why the code we wrote doesn't work. JavaScript is a forgiving language, but there are still common problems to be aware of. Now when you look at a page and it doesn't do what you were hoping, know that many JavaScript problems have failed silently. There will be no error message. They just won't work, although we can get some error message from some of our code, and let's cover those first. Make sure to have your JavaScript debugger, like Firebug, open, as the default configuration of most web browsers won't alert you to any JavaScript issues.

They just won't work. I'm going to refresh this page, and with Firebug open, it's giving me a problem here, and this is the situation, that first, and most importantly, we might have syntax errors. So I'm going to jump over to Aptana. I'll go to small JavaScript ...

Common JavaScript errors
Video duration: 7m 14s 5h 31m Beginner

Viewers:

JavaScript is a forgiving language, but errors still happen and the code won't run. Learn how to detect and resolve common JavaScript errors using a debugger like Firebug and these handy troubleshooting techniques.

Subjects:
Developer Web
Software:
JavaScript
Author:
please wait ...