Giter VIP home page Giter VIP logo

bank-app's Introduction

Test: Code: Expected Output:


Description: BankAccount (){}

Test: Should take an initial amount, store it an instance of BankAccount! Code:let account1 = new BankAccount(666) Expected Output:account1 = {checking : 666}


Test:should be able to have multiple instances of BAnkAccount in our app. Code:let account2 = new BankAccount(667) let bank = new Bank() bank.addAccount(account2) Expected Output: Bank {accounts: {…}}


Describe: Bank.prototype.assignId Test: It should generate a unique id for each account added to the bank" Code: let account2 = new BankAccount(667) let bank = new Bank() bank.addAccount(account2) Expected Output: Bank { accounts: { 1: BankAccount, 2: BankAccount} }

Test: should store a mock account in a bigBANK Code: let account1 = new BAnkAccount(16000) let bigBAnk = new Bank; bigBank.addAccount(account1); account1.withdrawal(20) Expected Output: account1 = 15800 !!


Describe: function handleDepositAndWithraw(e) {} Test:should add and subtract from the checking account while updatig the UI to show the correct amount in our chacking account" Code: Expected Output: :)


bank-app's People

Contributors

emmalgs avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.