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

fix issue #4 #5

Closed mnaray closed 2 years ago

mnaray commented 2 years ago

In this PR, I created a method that gets called when there is a multiplication with a bracket. This fixes the bug described in issue https://github.com/harsh98trivedi/Simple-JavaScript-Calculator/issues/4 However, I didn't get to make it able to work with two multiplications.

The first commit was just removing a commented console log and formatting the code to make it more readable.