In my project of a React calculator, i actually can make it do 5.5.5 to display 5.55 and 10.5 - 5.5 is really 5. But in the run test menu still gives me an error… Help plz.
the codepen link is: Calculator (codepen.io)
In my project of a React calculator, i actually can make it do 5.5.5 to display 5.55 and 10.5 - 5.5 is really 5. But in the run test menu still gives me an error… Help plz.
the codepen link is: Calculator (codepen.io)
Try doing 5.5.5
then clear it (AC
) and do 5.5.5
again.
Also, when I run the test I see NaN
at one point which would suggest some math operation on invalid values.
thanks, i wasn’t refreshing all the state when ac was pressed.
now i can not handle two consecutive signs like this: 5*-2, if you could help…