Skip to content

Calculator assignment as part of the Kreativstorm Front-End Development Hands-on Training Programme

Notifications You must be signed in to change notification settings

aademirci/js-calculator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 

Repository files navigation

JS Calculator

This is a web app that makes basic arithmetic operations.

Live demo: https://aademirci.github.io/js-calculator/

Features

  • 4 basic arithmetic operations: add, subtract, multiply, divide
  • Keyboard support
  • Responsive design, mobile friendly even for horizontal orientation
  • Operation buttons keep pressed while waiting for the operand to add a visual cue
  • Ability to calculate floating numbers such as 43.2
  • Fixes to common JavaScript mathematical errors such as 0.1+0.2 or 0.8-0.1 operation
  • Avoid the input bigger than MAX_SAFE_INTEGER initially, although users can still operate over the bigger results
  • The screen is scrollable for big numbers on small device width
  • Safely avoid the user from dividing numbers with 0

Credits

Special thanks to monura for further testing and finding bugs.

About

Calculator assignment as part of the Kreativstorm Front-End Development Hands-on Training Programme

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published