Project name:

Javascript Calculator

Project description:

A simple electronic calculator designed in HTML/CSS and coded in JavaScript. This is the first of the advanced front end development projects section of FreeCodeCamp. From this project I realized how powerful the function eval() in JavaScript can be. It allows to execute code from a string in runtime. That was how I performed the arithmetic operations in the Calculator.

User stories:

  • Can add, subtract, multiply and divide two numbers.
  • Clear the input field with a clear button.
  • I can keep chaining mathematical operations together until I hit the equal button, and the calculator will tell me the correct output.