This is a simple calculator app that can perform basic arithmetic operations such as addition, subtraction, multiplication, and division. It is built with HTML, CSS, and JavaScript only. No frameworks or libraries are used.
- The calculator has a user-friendly interface with buttons for digits and operators.
- The calculator can handle decimal numbers and negative numbers.
- The calculator can display the current expression and the result on the screen.
- The calculator can clear the current expression or delete the last character with the C and DEL buttons respectively.
- The calculator can evaluate the current expression with the = button or by pressing the Enter key.
You can try out the calculator app here.
To run the calculator app locally, you need to clone this repo and open the index.html file in your browser. Alternatively, you can use a live server extension in your code editor.
To use the calculator app, you can either click on the buttons with your mouse or use your keyboard. The keyboard mappings are as follows:
- 0-9: Digits
- +, -, *, /: Operators
- .: Decimal point
- -: Negative sign (press twice to toggle)
- Enter: Evaluate
- Backspace: Delete
- Escape: Clear
This project is licensed under the MIT License - see the [LICENSE] file for details.
This project is created by Khaled Ashraf. You can contact me at My Email or follow/add me on My Facebook.