JS Calculator fb

JS Calculator fb


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


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.


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