I want to use classes in my Node Application but I wonder whether there is a way (like in typescript) to minimize class definitions, for example:
class Rectangle(
constructor(height, width){
this.height = height;
this.width = width;
}
)
to something like
class Rectangle(
constructor(height, width){}
)
so I do not need to assign the values from the constructor to variables with exactly the same name.