Skip to content

Commit 73b5ce2

Browse files
Updated JavaScript test files.
1 parent ba71cb0 commit 73b5ce2

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)