The new operator

We can use the new operator to generate an instance of Person:

const person = new Person("remote", "Jansen"); 

When we use the new operator, the runtime creates a new object that inherits from the Person class prototype.

Get Learning TypeScript 2.x - 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.