Skip to content

Commit 90a33a0

Browse files
Updated JavaScript test files.
1 parent cf21dd0 commit 90a33a0

1 file changed

Lines changed: 20 additions & 0 deletions

File tree

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
// Copyright (c) Microsoft Corporation. All rights reserved.
2+
// Licensed under the MIT license.
3+
4+
import * as Arithmetic from 'Arithmetic.js';
5+
6+
export class Rectangle {
7+
constructor(width, height) {
8+
this.width = width;
9+
this.height = height;
10+
}
11+
get Area() {
12+
return Arithmetic.Multiply(this.width, this.height);
13+
}
14+
}
15+
16+
export class Square extends Rectangle {
17+
constructor(side) {
18+
super(side, side);
19+
}
20+
};

0 commit comments

Comments
 (0)