I have passed all but part of Story #13 where 5 * - + 5 = 10 but I am getting -25. I understand why but I can’t figure out the logic. Any help would be much appreciated. My thought process can be seen in the equals() method.
You should use the internal state of the app for tracking values and not by reading values out of the DOM. The internal state is the only source of truth.
Can’t really give you much advice as to your question. Other than to say if the current input is an operator and the next input is an operator you use the latest operator. Maybe get the operator logic in place before tackling negative numbers.
This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.