Feedback on: Javascript Calculator

Feedback on: Javascript Calculator
0

#1

Please critique my javascript Calculator; Feel free and comment, suggest, and advice. Thanks
link : http://codepen.io/excviral/full/LZGqXe/


#2

I love the style. The first equation works fine, no matter what it is. The calc doesn’t clear if you move on to the next, so the next time you hit the equal sign, it gives an answer that’s not a number .

For instance:

1 + 1 = 2 displays Ans: 2. Then, without hitting any other button, if you just go to the next: 2 + 2 = 4, it displays Ans: NaN.


#3

Yeah @barbarastl that’s a bug i need to solve. I’m still figuring out what to do about it. If anyone has any suggestion on it, please reply! Thanks in advance.