Would somebody mind taking a look over my React calculator - https://codepen.io/mikebish13/pen/qBEZZQg
This has been quite difficult in terms of getting my head around the logic but I’m nearly there! The calculator has all of the major functionality but I still have 3 tests to pass:
Not accepting two decimals one after the other
Handling two operators one after the other
Managing the decimal places - although I do seem to have 4 points of precision so I don’t know why this is failing.
I haven’t got a clue where to start in terms of implementing these things and feel like I need to take a step back. Any suggestions or pointers in the right direction would be very welcome, as would any generic feedback about my implementation.