Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 66a5f80

Browse files
committed
Fix formatting problems
1 parent e9d40ba commit 66a5f80

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

README.md

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -644,11 +644,12 @@ server.
644644
```javascript
645645
class BankAccount {
646646
constructor() {
647-
this.balance = 1000;
647+
this.balance = 1000;
648648
}
649649
}
650650

651651
let bankAccount = new BankAccount();
652+
652653
// Buy shoes...
653654
bankAccount.balance = bankAccount.balance - 100;
654655
```
@@ -657,18 +658,19 @@ bankAccount.balance = bankAccount.balance - 100;
657658
```javascript
658659
class BankAccount {
659660
constructor() {
660-
this.balance = 1000;
661+
this.balance = 1000;
661662
}
662663

663664
// It doesn't have to be prefixed with `get` or `set` to be a getter/setter
664665
withdraw(amount) {
665-
if (verifyAmountCanBeDeducted(amount)) {
666-
this.balance -= amount;
667-
}
666+
if (verifyAmountCanBeDeducted(amount)) {
667+
this.balance -= amount;
668+
}
668669
}
669670
}
670671

671672
let bankAccount = new BankAccount();
673+
672674
// Buy shoes...
673675
bankAccount.withdraw(100);
674676
```

0 commit comments

Comments
 (0)