Skip to content

Commit e9aa795

Browse files
author
n-WN
committed
classes
1 parent f8f6964 commit e9aa795

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

public/app.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,13 @@ var Invoice = /** @class */ (function () {
77
this.amount = a;
88
}
99
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);
1111
};
1212
return Invoice;
1313
}());
1414
var invOne = new Invoice('mario', 'work on the mario website', 250);
1515
var invTwo = new Invoice('luigi', 'work on the luigi website', 300);
16+
// let exmaples: (string | number)[] = [];
1617
var invoices = [];
1718
invoices.push(invOne);
1819
invoices.push(invTwo);

src/app.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ class Invoice {
1818
const invOne = new Invoice('mario', 'work on the mario website', 250);
1919
const invTwo = new Invoice('luigi', 'work on the luigi website', 300);
2020

21+
// let exmaples: (string | number)[] = [];
2122
let invoices: Invoice[] = [];
2223
invoices.push(invOne)
2324
invoices.push(invTwo);

0 commit comments

Comments
 (0)