I have done three different JS Calculator tutorials so far. The latest one I tried was from this article:
Here is my codepen:
It is failing tests that say things like “The expression 5 - 9 + 5 should produce a result of 1”, but when I type this in the calculator the display is showing the correct number. How can this be?
You calculator project does not allow entering and displaying 5 - 9 + 5 before hitting enter. Your display only displays each number entered without displaying the operators or previous numbers entered.
I should be able to click on 5, click on -, click on +, click on 5 and it show 5-9+5 in the display. Once I hit =, then it should show the result of the expression in the display.