Tell us what’s happening:
Failing to pass the tests 9 to 15. The test #9 tells me that: The expression 3 + 5 * 6 - 2 / 4 should produce 32.5 or 11.5
, and I expect other test are not executed, because it seems that my project follows most of the rules listed, I am just not sure about how many places behind decimal point my result displays.
So the problem is that the tests makes me think that my results do not match the expected outcome, however my test tells me otherwise:
This is not the first calculator project I have written, the previous project was a challenge from frontendmentor.io. The project was only vanilla JavaScript - link to it.
Since this time I am using a framework I decided to get fancy and make use of math.js API,
I know it was not recommended to use any not listed technologies, however this way I feel like I do display the step forward I have made, for myself and for potential employer.
So I would rather troubleshoot and keep the API then write code that would calculate the result for me, of course if someone would be willing to lend their knowledge to help me out.
The main current suspect is that the server has a delay to respond with the result.
I hope it is OK to share the link to current state of the project at codepen…
Link to codepen
Your browser information:
User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/108.0.0.0 Safari/537.36
Challenge: Front End Development Libraries Projects - Build a JavaScript Calculator
Link to the challenge: