Giter Club home page Giter Club logo

jscalculator's Introduction

JS Calculator

Introduction

Now that you have learned JavaScript syntax and been given an introduction to how JavaScript is used in the browser, it is time to apply your skills and get some experience using 'vanilla' JavaScript to create a user interface.

Overview

You will create a calculator with JavaScript. Your calculator should be added to the DOM on page load entirely with JavaScript (you shouldn't type any HTML to represent your calculator ** you can create a container div if you wish **).

Grading

As usual this is going to be a pass fail assignment. If your program meets all the listed requirements, you will receive a 1 on the assignment. If you fail to do so, you will receive a 0 and have until the following Monday to complete the program for .5 credit.

Minimum Requirements

[ ]: The calculator has a screen which displays numbers input by the user, or a summed total based on mathematical operations

[ ]: The calculator has buttons (0-9, +, -, /, *, ., =, C)

[ ]: The calculator can perform the following operations (i.e. is a working calculator:

  • addition
  • subtraction
  • division
  • multiplication

[ ]: The 'C' button clears the running total/entered value (works like a clear button).

[ ]: = returns the sum of the current operation

[ ]: All calculator buttons are assigned click events which result in some action being performed (be it updating the displayed value, or performing math)

Stretch Goals

[ ]: Handles decimals

[ ]: Users can enter values/perform math with keyboard input (keypress)

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.