Not passing the test number 13 in Javascript Calculator?

Test number 13 is as follows

If 2 or more operators are entered consecutively, the operation performed should be the last operator entered (excluding the negative (-) sign.

here is the codepen to the project for some reason I think it’s expecting a space in between the operators and operands?
Thanks in advance.

No, the information is clear.
So when you type
5 *
and then
- 5
it should write 5* - 5 and resolved to -25.
Currently your calculator is not doing that.