JavaScript

Class

Definition

ES6 syntactic sugar over JavaScript's prototype-based inheritance. Classes provide a cleaner way to create objects and implement inheritance using `extends` and `super`.

Code Example

Javascript
Tip: Modify the code above and click “Run” to see the results

Learn More

Related Terms