Recent Docs Activity

Example Edit Using super in classes the fragment of the code: set area(value) { this.area = value; } I think, that it's more reasonable to set this.width and this.height because I see no way to split the.area between required this.width and this.height.

Example Using super in classes. The fragment of the code: class Square extends Polygon { constructor(length) { this.height; // ReferenceError, super needs to be called first! I see no reason to use this.height; here. It just shows us that super is needed.