I’m bulding a JS calculator and trying to past the FCC test on it. But the FCC test is showing this error:
- If 2 or more operators are entered consecutively, the operation performed should be the last operator entered (excluding the negative (-) sign.
The sequence “5 * - 5” = should produce an output of “-25” : expected ‘-5’ to equal ‘-25’.
Here is my code: https://codepen.io/ulugbek/pen/KOmErL
Interesting enough, the FCC example has the same 13th bug right here: https://codepen.io/freeCodeCamp/full/wgGVVX
Anyone solved this issue? Please share your experiance.