harsh98trivedi / Simple-JavaScript-Calculator

Simple JavaScript Calculator by Harsh Trivedi
https://harsh98trivedi.github.io/Simple-JavaScript-Calculator/
MIT License
170 stars 169 forks source link

Edited the calc.js function to accept new inputs properly after the previous operation. (According to the issue that was occurring) #14

Closed HrutikaBadgeri closed 1 year ago

HrutikaBadgeri commented 1 year ago

Created a flag variable that keeps track when a particular operation has been completed. In regards with the issue that was occurring, it is solved and now the calculator no longer appends the new input values after the previous operation's input and executes the operations successfully.