Skip to content

fzwSSH/web-calculator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

web-calculator

A simple JavaScript homework

Features:

  • 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)

TODO

  • support minus, plus and divide
  • add press animation for buttons

About

a simple JavaScript homework

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published