I think I took a slightly different approach to your conventional calculator, I read the user story about chaining operations and made my calculator process the entire entered expression only after the equals button was hit.
Thinking about it now, it makes a whole lot more sense doing it in real time, performing a calculation between mathematical operator entries… A fix for later perhaps!
You’re calculator looks and works great. I particularly like how you’ve divided the current entry and the running total equation.
You might want to check whether your calculator handles the order of operation (When multiplication, division, addition and subtraction should occur in a long mathematical expression). I found a really great tool to help debug was this web app: https://www.mathsisfun.com/algebra/operations-order-calculator.html
You can literally copy and paste a mathematical expression from you calculator and cross check the result.
Other than that, I checked out your blog! I read the article on Binaural Beats - which is interesting, I’ll give them a go while coding my next project. I personally like Lofi Hiphop for focusing.
Thanks for the feedback. I debated whether working in order of operations, but the example project uses a running total instead of order of operations, so I went with that.
Finally finished my calculator! http://codepen.io/tommypepsi/pen/PpLEOj
you can click on the calculator or use the keyboard(ESC. will reset the calculator). You can also add parenthesis to change the priority of operation. I used RegExps to parse the operation string and return the answer. You can do complex operations, but there might be some case that I didn’t think of. I think I made this more complicated than it is haha