JS Calculator fb

JS Calculator fb
0

#1

Hi everyone, I would like some feedback on my Javascript Calculator project: https://codepen.io/dnlnav/full/qPxpEV. Thanks!


#2

If I enter 5 + 5 + 6 and then hit the C/AC button once and then hit the + again I get Error. I guess the two +s in a row cause the error. That should not cause an error, because if I enter 5 + + 5, it ignores the extra + and upon hitting = I still get 10.


#3

Yeah, I missed a condition to handle that situation. I think it’s now working properly. Thanks for the feedback!