A simple JavaScript homework
- support addition
- have one register for calculation
- use BigInt to deal with data overflow
- press AC to clear the screen and the register
- press CE to only clear the screen and input numbers again
- support keyboard input
- press 0 ~ 9 for numbers
- press + for add
- press = for equal
- press backspace or delete for deleting number
- press escape for performing AC
- carefully managed the issues of button pressing order
- try to simulate the output of iphone calculator(under some undefine events)
- support minus, plus and divide
- add press animation for buttons