how to declare a variable inside a class in javascript

Solutions on MaxInterview for how to declare a variable inside a class in javascript by the best coders in the world

showing results for - "how to declare a variable inside a class in javascript"
Moritz
27 Oct 2016
1class MyClass {
2    const MY_CONST = 'string';
3    constructor(){
4        this.MY_CONST;
5    }
6}
7