© Adam Freeman 2020
A. FreemanPro Angular 9https://doi.org/10.1007/978-1-4842-5998-6_6

6. JavaScript and TypeScript: Part 2

Adam Freeman1 
(1)
London, UK
 
In this chapter, I describe some of the more advanced JavaScript features that are useful for Angular development. I explain how JavaScript deals with objects, including support for classes, and I explain how JavaScript functionality is packaged into JavaScript modules. I also introduce some of the features that TypeScript provides that are not part of the JavaScript specification and that I rely on for some of the examples later in the book. Table 6-1 summarizes the chapter.
Table 6-1.

Chapter Summary

Problem

Solution

Listing

Creating an object by specifying properties and values

Use the new keyword or ...

Get Pro Angular 9: Build Powerful and Dynamic Web Apps now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.