Skip to content

A versatile Vanilla JavaScript calculator for basic and special operations, with keyboard input, error handling, and a display of computation history.

License

Notifications You must be signed in to change notification settings

Lalitkumar4/windows-10-standard-calculator-clone-app

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Windows 10 Standard Calculator Clone App

This JavaScript web-based calculator lets users execute fundamental mathematical operations such as addition, subtraction, multiplication, and division. Special operations such as square root, reciprocal, and percentage computations are also included. For improved use, the calculator has a graphical user interface (GUI) for input and output, as well as keyboard input.

View Demo

screencapture-file-D-JavaScript-JavaScript-Projects-JavaScript-Projects-windows-10-standard-calculator-clone-app-index-html-2023-10-04-15_43_59

Features

  • Addition, subtraction, multiplication, and division are the four basic arithmetic operations.
  • Special operations (square root, reciprocal, percentage) are available.
  • Support for keyboard input
  • Handling division by zero and incorrect input errors
  • Display of computation history
  • History log with a toggle

Keyboard Input

For improved usability, the calculator accepts keyboard input. The keyboard allows users to enter numbers, carry out operations, and monitor the history of calculations. There are the following keyboard shortcuts available:

  • Numbers (0-9) and decimal point (.)
  • Basic operations (+, -, *, /)
  • Special operations (1/𝑥, 𝑥², √𝑥)
  • Enter or the equals sign (=) to calculate
  • Backspace will remove the previous character.
  • Escape key to clear the calculator
  • The tab key cannot be used.

Contribute

Feel free to make a pull request.

About

A versatile Vanilla JavaScript calculator for basic and special operations, with keyboard input, error handling, and a display of computation history.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published