File tree Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -7,12 +7,13 @@ var Invoice = /** @class */ (function () {
7
7
this . amount = a ;
8
8
}
9
9
Invoice . prototype . format = function ( ) {
10
- return this . client + " owes \u00A3" + this . amount + " for " + this . details ;
10
+ return "" . concat ( this . client , " owes \u00A3" ) . concat ( this . amount , " for " ) . concat ( this . details ) ;
11
11
} ;
12
12
return Invoice ;
13
13
} ( ) ) ;
14
14
var invOne = new Invoice ( 'mario' , 'work on the mario website' , 250 ) ;
15
15
var invTwo = new Invoice ( 'luigi' , 'work on the luigi website' , 300 ) ;
16
+ // let exmaples: (string | number)[] = [];
16
17
var invoices = [ ] ;
17
18
invoices . push ( invOne ) ;
18
19
invoices . push ( invTwo ) ;
Original file line number Diff line number Diff line change @@ -18,6 +18,7 @@ class Invoice {
18
18
const invOne = new Invoice ( 'mario' , 'work on the mario website' , 250 ) ;
19
19
const invTwo = new Invoice ( 'luigi' , 'work on the luigi website' , 300 ) ;
20
20
21
+ // let exmaples: (string | number)[] = [];
21
22
let invoices : Invoice [ ] = [ ] ;
22
23
invoices . push ( invOne )
23
24
invoices . push ( invTwo ) ;
You can’t perform that action at this time.
0 commit comments