Hey guys, I’ve been working on my calculator JavaScript for my front-end libraries certification, and for some reason that I don’t know it’s not passing test#10 and how to fix it. It’s a bit frustrating after so many hours into this challenge and I’ve tried almost everything and still not passing. I just want to know what to do to pass it, if someone could help me figure it out I’d be so glad, Thanks in advance!
I think the test is not passing because your calculator isn’t quite behaving correctly.
If you click ‘AC’ or ‘C’ you have a zero in the ‘answer’ display. If you then enter ‘0’ however, the zero disappears from the display. This could be what is causing that test to fail. The zero also disappears from both displays if you enter a decimal point (e.g. trying to enter the number 0.03, the display removes the integer 0 leaving only .03).
1 Like
Thanks! I checked again that part of the code and I found the mistake! thanks again!
This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.