File tree
Expand file treeCollapse file tree1 file changed
+5
-5
lines changed Expand file treeCollapse file tree1 file changed
+5
-5
lines changed Original file line number | Diff line number | Diff line change |
---|
@@ -914,7 +914,7 @@ server.
|
914 | 914 | ```javascript
|
915 | 915 | class BankAccount {
|
916 | 916 | constructor() {
|
917 |
| - this.balance = 1000; |
| 917 | + this.balance = 1000; |
918 | 918 | }
|
919 | 919 | }
|
920 | 920 |
|
@@ -928,14 +928,14 @@ bankAccount.balance = bankAccount.balance - 100;
|
928 | 928 | ```javascript
|
929 | 929 | class BankAccount {
|
930 | 930 | constructor() {
|
931 |
| - this.balance = 1000; |
| 931 | + this.balance = 1000; |
932 | 932 | }
|
933 | 933 |
|
934 | 934 | // It doesn't have to be prefixed with `get` or `set` to be a getter/setter
|
935 | 935 | withdraw(amount) {
|
936 |
| -if (verifyAmountCanBeDeducted(amount)) { |
937 |
| - this.balance -= amount; |
938 |
| -} |
| 936 | +if (verifyAmountCanBeDeducted(amount)) { |
| 937 | + this.balance -= amount; |
| 938 | +} |
939 | 939 | }
|
940 | 940 | }
|
941 | 941 |
|
|
You can’t perform that action at this time.
0 commit comments