

The implementation of pattern matching into JavaScript greatly aids in the processing of data for the Internet. If you are familiar with Perl, you will probably recognize JavaScript pattern matching because it was based on Perl's implementation of pattern matching. Some scripting languages, such as Perl, are well suited to handle pattern matching, whereas others provide very little pattern matching capabilities. One of the key tools for processing data is pattern matching. These two areas, by nature, use data manipulation to understand what the user needs and then return information tailored to the user's specifications. Two of the most common uses of Web pages today are for gathering and distributing data. You will also be introduced to some free JavaScript debugging programs and techniques. You will be introduced to the try.catch block and shown how to use it. This chapter will also examine two programming techniques that will make your JavaScript programs less error prone. In this chapter we will look at pattern matching and event handling and show you how to use these two pieces of JavaScript functionality to make your JavaScript programs more powerful. Now it is time to go to the next level by examining some of the features of the JavaScript language and programming techniques that will make your JavaScript programs more powerful and more resilient to errors and maybe even make you say, "Wow, I didn't know JavaScript could do that!"

In Chapter 2, "Details of the Language," you were given a quick overview of the core JavaScript language to show you differences and similarities to other computer languages.
