Class Fields Explained – What Is a JavaScript Class Field?
A class field is a property defined directly in a class's body—not inside any of the class's methods.
A class field is a property defined directly in a class's body—not inside any of the class's methods.
A JavaScript class is an object constructor that the new keyword uses to create a new object instance.
Encapsulation is the privatization of an object's data while providing publicly available methods for users to operate on the private data.
The new keyword creates an object from a JavaScript constructor function or class. Therefore, the newly created object becomes an instance of the constructor.
The super keyword searches a parent class or object literal for a specified static or prototypal property.