Giter Club home page Giter Club logo

calculator_functionality's Introduction

calculator_functionality

#Complete The Calculator Assighnment

#Learning Goals Understand Event handling and Dom Manipulation. Introduction In this assignment you will create a calculato using javascript. This lesson is your third assignment!

All assignments are hosted on GitHub. In order to work on them, however, you will need to complete work on your local machine.

User interface of the assignment is already done here!

Download your personal copy (referred to as 'cloning') to your computer Navigate to js folder then main.js Start working this folder Complete the required work In this assignment, you'll learn the workflow that you will use to deal with DOM manipulation and event handling. Every application that has a user interface and has observed separation of cocern basically requires javaScript to make the website lively

Instruction to Completing Calculator Assignment The calculator fuctionality:

Next, we have to define the different operations that the calculator will perform. The first one is the clear() function, which will clear all the different variables. The next method is delete() for clearing a single number.

We will also create a function that determines what will occur every time a user clicks on a number to add to the display called appendNumber(number).

We need a chooseOperation(operation) function that controls what will happen anytime a user clicks on any operation button.

Another key function is compute(). It takes the values inside your calculator and displays the result.

Finally, a updateDisplay() function lets us update the values inside of the output.

Note: Use knowledge learned from prevous classes is highly required here.

Conclusion Hurray! You've completed your first assignment, Kudo to Apprentice Cloud gem! You now know how to work on and submit assignments going forward:

Equipped with this knowledge, you are now ready to tackle greater challenges!

calculator_functionality's People

Contributors

vitamaxoduol avatar

Watchers

 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.