Help With Calculator Test

Hey all,

I have been working for maybe two months. I am stuck. I cannot pass test 13 on the Front End Project - Calculator.

It says:

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

I’m trying to have to rewrite all my code. I like it and I think it works okay, but I’m absolutely stumped.

Thanks in advance and here’s my code:

https://codepen.io/tmacmcgraw/pen/LoeamP?editors=0010#0

Cheers