prep-work/javascript/10-bank-accounts
2014-12-01 15:22:51 -05:00
..
2014-12-01 15:22:51 -05:00
2014-12-01 15:22:51 -05:00

Banks and Bank Accounts

Make a bank object that holds bank accounts. Your bank accounts should have a balance and account number (store the account number as a string).
Make two bank accounts that are keys in the Bank object.
With the bank accounts, you should be able to:

  • make a deposit
  • make a withdrawal
  • Not be able to withdraw more than the amount in the account
  • See your current balance