Tell us what’s happening:
Describe your issue in detail here.
I built a calculator in VSCode with the CDN and hand tested all functionality of the automated tests (including edge cases) and my calculator is functioning as the specs ask, but for some reason everything from #8 down (display shows input) fails.
I ported the code to a CodePen to post here and now I’m failing test #7, too…though the functionality has not broken.
At first I thought my issue was with the way I was displaying the information and implemented several different versions of display to no avail (without useEffect, and using an expression inside the div, etc.)…but seeing this new test fail that is clearly working in my VSCode version has me perplexed.
In the description of the failure I noticed it is seeing very different values than what is expected and dug into the dev tools to check if any of my state was mutating but that doesn’t appear to be the case…
I’ve had somewhat similar issues before and disabling my browser extensions fixed the issue–which I also tried here–no luck.
Can someone please point me in the right direction? Everything appears correct / functions as expected.
Your code so far
codepen link: https://codepen.io/luckynumberke7in/pen/ExoBvqy
Your browser information:
User Agent is:
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:99.0) Gecko/20100101 Firefox/99.0
Link to the challenge: