- Fork this repo
- On your local machine, clone the forked repo
- Create the calculator below only using javascript.
- Push your changes to github
Give the calculator basic functionality
- Addition and Subtraction: When the ‘+’ or ‘-’ button is pushed, it adds/subtracts the current number displayed to the next inputted number.
- Pressing the ‘=’ button shows the sum.
Answers are posted in the answer folder. The answer creates a simple calculator solution. However, there are limitations to this solution. How could you improve the code? What happens if you push the '=' button twice? How can you fix this?