Tell us what’s happening:
I am taking issue with one of the test requirements and user stories. I don’t think that entering “5 * - 5 =” should produce -25. The minus button is a math operand, not a flag. Should the test case “5 * - - 5 =” produce 25? Should “5 * - - - 5 =” produce -25? As such, I’ve added a negative flag to the calculator to perform that function. I believe that this should pass the test requirements. Anyone care to weigh in?
Your code so far
Your browser information:
User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/79.0.3945.88 Safari/537.36
.
Challenge: Build a JavaScript Calculator
Link to the challenge: