Calculator App

This application allows users to perform simple mathematical calculations with the following supported operations - addition, subtraction, multiplication, and division. Users can perform calculations on decimal numbers as well. Additionally, users can reset the calculations or delete the previous operand. As a design feature, users can toggle between light and dark modes as well.

Calculator app image

Tech Stack

  • HTML
  • CSS
  • JavaScript

Project Learnings

My key takeaway was that planning before development and modularizing an application makes any problem easier to solve.

Project Challenges

  • Adding the functionality of deletion was a real challenge. I looked at various calculators to figure if the delete function would delete all the operands and operators or only the operands. Finally, I followed the delete feature in a windows calculator and went ahead to delete only operands.
  • Another challenge was when I had to replace a previous operator with a new one.