You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
28 lines
571 B
28 lines
571 B
// 1.question
|
|
let personAccount = {
|
|
firstName: '',
|
|
lastName: '',
|
|
incomes: 0,
|
|
expenses: 0,
|
|
|
|
totalIncome: function () {
|
|
return;
|
|
},
|
|
totalExpenses: function () {
|
|
return;
|
|
},
|
|
accountInfo: function () {
|
|
return `Name : ${this.firstName} ${this.lastName}
|
|
Income: ${this.incomes} Expense: ${this.expenses}`
|
|
},
|
|
addIncome: function () {
|
|
return;
|
|
},
|
|
addExpense: function () {
|
|
return;
|
|
},
|
|
accountBalance: function () {
|
|
return;
|
|
}
|
|
};
|