Problems with vanilla Js Calculator

Hello everyone! Please, i need your help. I can’t pass test 13, can you advice me something? https://codepen.io/MotyBoom/pen/LYNJYmX

Well, how have you tried to handle 5 * -5 in your code? Right now, 5 * -5 gives me 0, which makes no sense.

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

Right now, 5 * + 5 also doesn’t work. It returns 5 but should return 10.

i solved this : Right now, 5 * + 5 also doesn’t work. It returns 5 but should return 10 ., however i don’t know how to pass test 13 :wink:

can you help me please?

please help me . it’s important