Last active
October 6, 2019 13:35
-
-
Save jbmilgrom/f1a9aae52926944554353238eabc6d81 to your computer and use it in GitHub Desktop.
Subsequent calls to withdraw with the same argument produce different results
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const bankAccount = new BankAccount(100); | |
bankAccount.checkBalance(); // 100 | |
bankAccount.withdraw(20); | |
bankAccount.checkBalance(); // 80 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment