Javascript Calculator - Finished

Javascript Calculator - Finished
0

#1

Javascript Calculator

Any feedback is welcome.

In this project, I started out having both input and the formula above in seperate divs within the “display” element. With this setup, half of the tests were failing even when the calculator was working. After I renamed the ids so “display” only had the input / answer, suddenly all of the tests passed.


#2

Great Job with the calculator, almost everything works perfectly, the only bug I found was, when you press the key to assign a positive or negative value to a number an then use the backspace key to delete the number to assign another number then press an operator the app craches.


#3

Hm, you’re right. Seems it’s not resetting properly when there’s a single digit negative number. I will try to fix that.

Edit: Fixed. Thanks for pointing that out :slight_smile:

Although now that I return to it, I found even more bugs…