Skip to content

violetguos/web-calc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Calculator project

From Odin.

Functionalities

  • add
  • subtract
  • multiply
  • divide
  • multiple operators
  • floating points
  • backspace/delete last entry only

UI

Apple-ish

To improve

  • less alerts, just ignore multiple entries of operators or decimal points.

Lessons learned

  • Need to think more like a JS programmer. Use more events instead of array manipulation.
  • Use classes instead of a lot of scattered functions and global variables