We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ba71cb0 commit 73b5ce2Copy full SHA for 73b5ce2
ClearScriptTest/JavaScript/Geometry/DynamicGeometry.js
@@ -0,0 +1,23 @@
1
+// Copyright (c) Microsoft Corporation. All rights reserved.
2
+// Licensed under the MIT license.
3
+
4
+let Arithmetic;
5
+(async function() {
6
+ Arithmetic = await import('../Arithmetic/Arithmetic.js');
7
+})();
8
9
+export class Rectangle {
10
+ constructor(width, height) {
11
+ this.width = width;
12
+ this.height = height;
13
+ }
14
+ get Area() {
15
+ return Arithmetic.Multiply(this.width, this.height);
16
17
+}
18
19
+export class Square extends Rectangle {
20
+ constructor(side) {
21
+ super(side, side);
22
23
+};
0 commit comments