Under what circumstances this bug occurs?

Good evening. The code is not thrown off because he'll dig, just wondering did you with this. (Cache cleaned
errors in console not). Thank you.

The point is simple: + - = to add or take away value and update the result according to the formula. If you press minus, lost additional value and come to the original state.
April 4th 20 at 13:15
2 answers
April 4th 20 at 13:17
See the handler that handles the negative. N, the branch handler, which runs when you press minus.
Most likely, a typo in a variable name, something with brackets or other stupid mistake. Put in the whole branch debug print - look. where will be the first time an incorrect value.
Well, I'll try, thanks. - Hans56 commented on April 4th 20 at 13:20
April 4th 20 at 13:19
debugger Your all

Find more questions by tags JavaScript