10 JavaScript 3: Additional Features

Chapter Objectives

In this chapter you will learn . . .

In Chapter 8, you learned most of the essential language features of JavaScript. In Chapter 9, you applied those features to use JavaScript more practically in the browser. This required learning the browser DOM and how to make use of events in JavaScript. This chapter begins with some additional language features of JavaScript, including several that are relatively new additions. While not essential, many are commonly used by developers to improve their productivity and the expressiveness of their code. This chapter also covers an essential practical use of JavaScript: how to asynchronously consume external JSON-based web APIs (Application Programming Interfaces). Finally, this chapter covers another applied use of JavaScript, namely, making use of several browser-based APIs.