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
- HTML, JavaScript, CSS, Bootstrap and JQuery.
- 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.