Classes are a template for creating objects. They encapsulate data with code to work on that data. ES6 introduced class syntax as a cleaner way to work with prototypes.
constructor() — Initialize objectextends — Inheritancesuper() — Call parent constructorstatic — Class-level methodsget/setEdit the code below and click Run to see the result live.