๐งฎ Calculator App
A simple and user-friendly Calculator App built using HTML, CSS, and JavaScript.
This project performs basic arithmetic operations:
- Addition (+)
- Subtraction (โ)
- Multiplication (ร)
- Division (รท)
Perfect for beginners learning JavaScript DOM manipulation and event handling.
- Perform basic arithmetic operations
- Clean and minimal UI
- Instant calculation
- Input validation (prevents division by zero)
- Pure JavaScript (no frameworks)
calculator-app/
โโโ index.html
โโโ style.css
โโโ script.js
- HTML5
- CSS3
- JavaScript (ES6)
- Clone the repository:
git clone https://github.com/subashchandraninfo/calculator-app.git
2. Open the folder:
```bash
cd calculator-app
```
3. Run the app:
* Open **index.html** in your browser
OR
* Use **Live Server** in VS Code
---
## ๐ก How It Works
### `script.js` Overview:
* **calculate(op)**
* Reads values from two input fields
* Performs the selected operation
* Displays the result dynamically
### Supports:
* `+` Addition
* `-` Subtraction
* `*` Multiplication
* `/` Division (with zero-check)
---
## ๐ธ Screenshot (Optional)
<img width="497" height="475" alt="image" src="https://github.com/user-attachments/assets/6b74de39-94e2-4a31-aa51-417cfac2d3a0" />