Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/khaledashrafh/calculator

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.
https://github.com/khaledashrafh/calculator

calculator css3 html5 javascript simple-calculator

Last synced: 15 days ago
JSON representation

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.

Awesome Lists containing this project

README

        

# Calculator

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.

## Features

- 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.

## Demo

You can try out the calculator app [here](https://khaledashraf.github.io/Calculator/).

## Installation

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.

## Usage

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

## License

This project is licensed under the MIT License - see the [LICENSE] file for details.

## Author

This project is created by [Khaled Ashraf](https://github.com/KhaledAshrafH). You can contact me at [My Email]([email protected]) or follow/add me on [My Facebook](https://www.facebook.com/5aleda4rf/).