https://github.com/devjosef/simple-calculator
An application for basic arithmetics and error handling
https://github.com/devjosef/simple-calculator
Last synced: 9 months ago
JSON representation
An application for basic arithmetics and error handling
- Host: GitHub
- URL: https://github.com/devjosef/simple-calculator
- Owner: Devjosef
- License: mit
- Created: 2023-08-06T10:39:06.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2024-03-13T07:28:08.000Z (about 2 years ago)
- Last Synced: 2025-02-23T21:42:25.077Z (over 1 year ago)
- Language: JavaScript
- Homepage:
- Size: 30.3 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: License
Awesome Lists containing this project
README
# Calculator App
This is a simple calculator web application built with HTML, CSS, and JavaScript. It allows users to perform basic arithmetic operations such as addition, subtraction, multiplication, and division.
## Features
- **Basic Arithmetic Operations:** Addition, subtraction, multiplication, and division.
- **Responsive Design:** The calculator is optimized for various screen sizes, making it usable on both desktop and mobile devices.
- **Error Handling:** Invalid expressions are handled gracefully with appropriate error messages.
## Usage
To use the calculator, simply open the `index.html` file in a web browser. Alternatively, you can [Access the live demo here](./index.html)
### Operation
- To perform arithmetic operations, click on the respective buttons (`+`, `-`, `*`, `/`).
- Enter numbers using the numeric buttons (0-9).
- To clear the current input, click on the `C` button.
- To calculate the result, click on the `=` button.
## Installation
No installation is required to use the calculator. Simply download or clone the repository and open the `index.html` file in a web browser.
```bash
git clone https://github.com/your-username/calculator-app.git
cd calculator-app