js class run at start code example
Example 1: variables in js class
constructor(){
this.foo = bar
}
Example 2: how to create class in javascript
class ClassName
{
}
constructor(){
this.foo = bar
}
class ClassName
{
}