Adding Error Checking Via Error Handler

If you see the source for this page you will see how to add error detection by using the code defined in a file called ErrorHandler.js. To add error detection to any program of yours:

If you download this page and the ErrorHandler.js file you can experiment with possible errors you can get (just introduce some errors in the JavaScript portion of the page). The JavaScript portion just prints "Test Value used is: 100".