Before we proceed with ES6 classes, let's refresh our knowledge of JavaScript data types, constructors, and inheritance. While learning classes, we will be comparing the syntax of constructors and prototype-based inheritance with the syntax of classes. Therefore, it is important to have a good grasp of these topics.
Understanding object-oriented JavaScript
Get Learn ECMAScript - 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.