- Storing useful values inside variables;
- Operations on pieces of text (known as «strings» in programming);
- Running code in response to certain events occurring on a web page.
When in the 1990s the Internet began to gain popularity in use, many technology companies struggled to create the most powerful web browser on the market. Especially companies like Microsoft with its Internet Explorer and Netscape with NetScape Navigator started to compete to gain dominance in the usage share of web browsers.