Here’s my codepen JS Calculator (codepen.io)
I can’t get these past these last 3 requirements:
9. In any order, I should be able to add, subtract, multiply and divide a chain of numbers of any length, and when I hit “=”, the correct result should be shown in the element with the id of “display”
^ But it does?
11. When the decimal element is clicked, a “.” should append to the currently displayed value; two “.” in one number should not be accepted
^ Not sure how to get it to display 5.55 when you throw 5.5.5 in there.
13. If 2 or more operators are entered consecutively, the operation performed should be the last operator entered (excluding the negative (-) sign.
When I actually use the calculator do manually do some of the, the required output is as is needed to past these tests. But sometimes it doesn’t?? I’m kind of at a loss to figure out how to get past these haha. Any hints?