I found this project quite challenging and I perhaps bit off more than I could chew with my “stretch goals”.
Specifically, I wanted to complete the project without using
eval() and I also wanted to include:
- a formula display with a customised scrollbar
- comma separation of digits
- a del/backspace button
- a max digit limit (21)
- a proper pos/neg button (as opposed to just using the subtract key)
- keyboard controls
So, I’ve spent several weeks working on this project and much of the time was spent fixing various bugs and unintended behaviours. I’m sure there are still some I’ve missed!
I feel that some of my implementations may be somewhat clumsy/messy or sub-optimum. On the plus side, I found this project to be a good refresher for regex and using
Anyway, I would appreciate any feedback and please let me know of any bugs. Thanks!