I’m finishing up my work on React Calculator as part of the Front-End Certificate and for some reason it is failing 6 tests. Visually it seems to be working just fine, but it still bugs me that tests are failing. I tried also manually replicating the tests and it worked all fine for me.
Thank you for your reply! I have managed to fix this first issue and some other bugs that I had in my code. Now it is passing test #11.
However, every other test is still failing. I also think that it might be reading a wrong line of code and resulting in those errors but not sure why it would be doing that.
I have the total final result being saved into displayNum variable via React hook and it is going directly into the element with id="display".
It seems that a problem had to do with something different and my calculator was indeed not working correctly in some instances (logical error in my functions). Works now though.