© Adam Freeman 2017

Adam Freeman, Pro Angular, 10.1007/978-1-4842-2307-9_6

6. JavaScript and TypeScript: Part 2

Adam Freeman

(1)MILTON KEYNES MK6 3PA, 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

Create an object by specifying properties and values

Use the new keyword ...

Get Pro Angular, Second Edition 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.