JavaScript Inheritance

Some classes can inherit from others. Inheritance allows you to reduce the amount of code in the der...

JavaScript Properties and Access Methods

To mediate access to class properties, recent JavaScript standards have added support for get and se...

JavaScript Static fields and methods

In addition to the usual fields and methods, a class can define static fields and methods. Unlike re...

JavaScript Private fields and methods

In previous topics, we used a class whose properties and methods were accessible from the outside, a...

JavaScript Classes

With the introduction of the ES2015 (ES6) standard, JavaScript has a new way of defining objects ...