Coder Social home page Coder Social logo

codepen-javascriptcalculator's Introduction

JavaScript Calculator

A CodePen.io App that functions as a regular calculator created with javascript code.

Project 4 of 5 for freeCodeCamp's Front End Libraries Developer Certification.

Public Webpage: JavaScript Calculator.

A Pen created at CodePen.io. You can find this one at https://codepen.io/carlos-i-martinez/pen/GeLEYN

Completed Front End Libraries Certification: Certificate.

FreeCodeCamp Public Profile: Carlos Martinez FreeCodeCamp

Technologies Used:

  • HTML, JavaScript, CSS, Bootstrap and JQuery.

Some requirements to complete project:

  • Calculator should contain clickable buttons for numbers 0 to 9.
  • Calculator should contain clickable buttons for equals, divide, multiply, add, subtract, decimal point(.) and clear.
  • As number buttons are clicked, they should be displayed in the calculator.
  • In any order, should be able to add, subtract, multiply and divide a chain of numbers of any length, and when 'equals' '=' is clicked, the correct result should be displayed.
  • When inputting numbers, calculator should not allow a number to begin with multiple zeros
  • When the decimal element is clicked, a . should append to the currently displayed value; two . in one number should not be accepted.
  • I should be able to perform any operation (+, -, *, /) on numbers containing decimal points.
  • If 2 or more operators are entered consecutively, the operation performed should be the last operator entered.
  • Pressing an operator immediately following = should start a new calculation that operates on the result of the previous evaluation.
  • Calculator should have several decimal places of precision(at least 4 decimal places)
  • Calculator utilizes formula logic and observes order of operation precedence.

codepen-javascriptcalculator's People

Contributors

carlos-i-martinez avatar

Watchers

James Cloos avatar  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.