Sorry, if it is duplicate, but I didn't find explanation. How can I create field in js class? to define in the future...
class Polygon {
   //var whyNot; This makes false
   constructor(height, width) {
      this.height = height;
      this.width = width;
   }
   calcArea() {
     return this.height * this.width;
   }
}
 
     
     
     
     
    