This is a solution to an intermediate level challenge by Frontend Mentor - Calculator app.
Users should be able to:
- See the size of the elements adjust based on their device's screen size
- Perform mathematical operations like addition, subtraction, multiplication, and division
- Bonus: Chain multiple operations together and get a result.
While the css part of this project was quite simple, the javascript part was on the difficult side. I got the initial draft right quite early, where i was able to perform operations without chaining and display a result.
While trying to get the operations to be chainable, i realised that my initial logic of relying on the "result" variable no longer worked. Eventually, i got it working, and it definitely felt accomplishing.