Giter VIP home page Giter VIP logo

cash-register's People

Contributors

emortong avatar theremix avatar

Watchers

 avatar

cash-register's Issues

Remove commented out code

At the top of your cash register - you have 4 lines of code that is commented out. Be sure to remove commented out code from your commits.

// var getTotal = myCalc.getTotal();
// var recallMemory = myCalc.recallMemory()
// var saveMemory = myCalc.saveMemory();
// var clearMemory = myCalc.clearMemory();

Refactor Operator click events

For each click event, refactor each click event function to use a function for the code that repeats itself in each function. For example, this code could be made into a new function:

   if(total !== 0) {
      display.innerHTML = total
    }
    var disp = Number(display.innerHTML);
    total = myCalc.load(disp);
    operator = true;

Style your app [feature]

Make your calculator beautiful!

If you need a style guide - use the calculator built into your Mac or your iPhone as a style guide reference. That thing is so well nice looking.

Break up code into cashRegister.js and app.js [refactor]

I want you to break up the code in your cashRegister.js into two modules. Refactor your cashRegister.js to use Revealing Module pattern and have it be responsible for only handling cash register specific tasks like withdrawing and depositing money. You can use the calculator.js module for this.

Then, in your app.js, I want you to put the logic for your application. This file does not need to use revealing module pattern. In this file put all of your app logic and click event logic here. This will be the "brain" of your app that pulls all of your modules together.

Let me know if this seems weird or your have any questions. ๐ŸŽ‰

Deploy your app [feature]

When you are done, refactoring and styling, you can deploy your application to Github pages. This is so you can share your app with the world!

Add a link to your deployed app to your README.md

Links to deplot to gh-pages:

https://pages.github.com/

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.