class in JavaScript

JavaScript classes are primarily syntactic sugar over JavaScript’s existing prototype-based inheritance. The class syntax does not introduce a new object-oriented inheritance model to JavaScript.
```
//[class] - [identifier]
class Main {
    //Fields and methods go here...
    constructor() {
        this.name = "Main";
    }
}

let m = new Main();   
console.log(m.name);
```
JavaScript does not support local class or nested class.