JS Calculator - Tests not passing

Hello!

So I wrote this js calculator app months ago (legacy).

Somehow it doesn’t pass some very simple tests on the FCC suite even if it has the actual requirements of the tests…

Do i have to restart / abandon this version?

here is the link:

Thanks in advance!

I managed to get it to 14/16 by fixing html(like you noticed indeed) and input details (replacing the 0 base input by the single digit whilst it wasnt doing that).

However, it s still failing 12 and 13.
Working on it

Update : Oh i see it s because my logic for allowing one “.” per number is for the whole string.
Update: Okkk so i did it …took me about 90 mins! There was a very specific case that needed some adjustement in the = area.