Calculator -- Code Works but Script Error (:0) on Test 13

Hi,

I think I completed the calculator project and fit all user stories. The code works well and I am passing all but one of the tests. The only test I am failing is test 13, which throws a script error. I cannot seem to figure out why I am failing the test.

I would appreciate any help, thank you!

My code: https://codepen.io/samuelspitz/pen/jOMGpoj?editors=1111

Hi,
For this test case you need to handle 2 consecutive -. For eg. 4*- -2 should return 6 but in your case it returns -8.

1 Like

4*–2 should return +8 not -8. I just tried with my project which passed all tests.

1 Like