The ES6 class syntax

In order to talk about ES6 classes, let's go ahead and simply create one. Now the syntax for creating a new class is going to look a little strange at first, it is unique to what we're about to do. But I promise that once you make one or two classes and add a few methods, you'll get really used to defining the methods and the classes themselves.

Get Advanced Node.js Development 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.