Skip to content

jbiers/calculator-js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

calculator-js

A calculator made with JavaScript, HTML and CSS.

Check out this project live HERE

Screenshot from 2022-01-13 11-50-43 Screenshot from 2022-01-13 11-50-47

TODO:

  • Implement basic design. --OK
  • Style dark mode. --OK
  • Style light mode. --OK
  • create basic JavaScript functions for the operations. --OK
  • Handle clicks to the numbers. --OK
  • Handle clicks to the operators. --OK
  • Handle division by 0 properly. --OK
  • Handle clicks to the clear button. --OK
  • Allow for multiple operations. --OK
  • Handle clicks to backspace button. --OK
  • Handle clicks to sound button --OK
  • Fix text overflow. --OK
  • Add keyboard use. --OK

What I've Learned:

  • eval() function
  • Number.isSafeInteger()
  • event.preventDefault()
  • how an XSS attack manages to input JavaScript code into a website
  • got really comfortable with arrow functions and event handling
  • how numbers work in JavaScript (how floating points are represented in computer memory

About

A calculator made with JavaScript, HTML and CSS.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published