Skip to content

Commit caec4e7

Browse files
committed
Fix spelling
1 parent 299a428 commit caec4e7

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

JavaScript/3-anemic.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ class Bank {
2525
operation, account.name, Math.abs(amount)
2626
);
2727
this.commands.push(command);
28-
account.balabce += amount;
28+
account.balance += amount;
2929
}
3030
showOperations() {
3131
console.table(this.commands);
@@ -43,3 +43,4 @@ bank.operation(account2, 500);
4343
bank.operation(account2, -100);
4444
bank.operation(account2, 150);
4545
bank.showOperations();
46+
console.table([account1, account2]);

0 commit comments

Comments
 (0)