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

Skip to content

Commit fda8357

Browse files
authored
Update README.md
added fake method
1 parent e56b69e commit fda8357

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

README.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -948,7 +948,7 @@ const bankAccount = new BankAccount();
948948
bankAccount.withdraw(100);
949949
```
950950

951-
**Good with getter/setter**:
951+
**Good**:
952952
```javascript
953953
class BankAccount {
954954
constructor(balance = 1000) {
@@ -965,6 +965,10 @@ class BankAccount {
965965
get balance() {
966966
return this._balance;
967967
}
968+
969+
verifyAmountCanBeSetted(val) {
970+
// ...
971+
}
968972
}
969973

970974
const bankAccount = new BankAccount();

0 commit comments

Comments
 (0)