0
React Calculator issue with "-"
So i have this calculator, for the freecodecamp exercice. Everything works except one test case. When i press more than 1 operator consecutively, the operation performed should be the last one entered, except for -. That exception messes up my test case. I have no idea how to fix it. Help I attempted something with a "negative" variable, but I had no success. https://codepen.io/AlexTAG/pen/YzgdGoX?editors=0011
2 Respostas
+ 1
Could you create an if else which checks the -(minus) operation
0
I can, but the issue is, what do i actually check ?