File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -7,12 +7,14 @@ 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
+ console . log ( invOne ) ;
17
+ console . log ( invTwo ) ;
16
18
var invoices = [ ] ;
17
19
invoices . push ( invOne ) ;
18
20
invoices . push ( invTwo ) ;
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ class Invoice {
4
4
details : string ;
5
5
amount : number ;
6
6
7
- constructor ( c : string , d : string , a : number ) {
7
+ constructor ( c : string , d : string , a : number ) {
8
8
this . client = c ;
9
9
this . details = d ;
10
10
this . amount = a ;
@@ -17,6 +17,8 @@ class Invoice {
17
17
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
+ console . log ( invOne ) ;
21
+ console . log ( invTwo ) ;
20
22
21
23
let invoices : Invoice [ ] = [ ] ;
22
24
invoices . push ( invOne )
You can’t perform that action at this time.
0 commit comments