Total Articles: 1

Add Some Class to Your JavaScript

Published: 11/5/2025

In this article, you're introduced to the ES6 JavaScript class keyword. You learn to create classes with constructors into which you may or may not pass in arguments. You learn to create public, read-only, and write-only properties. Within a class, you can create private fields and methods that are only available within the class itself. Inheritance is a key feature of object-oriented programming and is accomplished in JavaScript using the extends keyword. You learn to override a method in an extended class and how to call methods in the parent class. You even learn how to extend the built-in classes in JavaScript. Finally, you build utility classes using static properties and methods.