File tree Expand file tree Collapse file tree 2 files changed +16
-16
lines changed
ClearScriptTest/JavaScript Expand file tree Collapse file tree 2 files changed +16
-16
lines changed Original file line number Diff line number Diff line change 1- // Copyright (c) Microsoft Corporation. All rights reserved.
1+ // Copyright (c) Microsoft Corporation. All rights reserved.
22// Licensed under the MIT license.
33
44export function Add ( a , b ) {
5- return a + b ;
5+ return a + b ;
66}
77
88export function Subtract ( a , b ) {
9- return a - b ;
9+ return a - b ;
1010}
1111
1212export function Multiply ( a , b ) {
13- return a * b ;
13+ return a * b ;
1414}
1515
1616export function Divide ( a , b ) {
17- return a / b ;
17+ return a / b ;
1818}
Original file line number Diff line number Diff line change 1- // Copyright (c) Microsoft Corporation. All rights reserved.
1+ // Copyright (c) Microsoft Corporation. All rights reserved.
22// Licensed under the MIT license.
33
44import * as Arithmetic from '../Arithmetic/Arithmetic.js' ;
55
66export 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- }
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+ }
1414}
1515
1616export class Square extends Rectangle {
17- constructor ( side ) {
18- super ( side , side ) ;
19- }
17+ constructor ( side ) {
18+ super ( side , side ) ;
19+ }
2020} ;
You can’t perform that action at this time.
0 commit comments