Skip to content

Latest commit

 

History

History
29 lines (22 loc) · 1.63 KB

File metadata and controls

29 lines (22 loc) · 1.63 KB

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.