Giter Club home page Giter Club logo

backbase's Introduction

JavaScript BANK Project Description:

This is a front end only online banking application. The problem is that this application is poorly written, and is in desperate need of a refactor.

The existing code already satisfies the following requirements:

  • A user can deposit money into one of the bank accounts.
  • A user can withdraw money from one of the bank accounts.
  • The balance in an account can't go negative. If a user tries to withdraw more money than exists in the account, ignore the transaction.
  • When the balance of the bank account is $0 the background of that bank account should be red. It should be gray when there is money in the account.
  • The retirement account has an added feature: Every time you deposit money into this account, your employer adds an additional $10 to your balance with each deposit (what a nice employer!).

Your Job:

  1. Refactor the code so that it is:
  • Object-oriented (as opposed to procedural)
  • DRY
  • Follows good naming conventions
  1. Comment the code to explain what it does and why you made certain design decisions.

  2. Consider maintainability and reusability when refactoring. For example, think about how you could refactor the code so that adding an additional account to the page in the future would be as painless as possible.

  3. Remove jQuery - only use vanilla JS.

Bonus: Use the retirement account to demonstrate inheritance

backbase's People

Contributors

samreaves avatar

Watchers

 avatar  avatar

Forkers

hemantgit

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.