Skip to content

subashchandraninfo/Calculator-App

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

2 Commits
ย 
ย 
ย 
ย 

Repository files navigation

๐Ÿงฎ 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.


๐Ÿš€ Features

  • Perform basic arithmetic operations
  • Clean and minimal UI
  • Instant calculation
  • Input validation (prevents division by zero)
  • Pure JavaScript (no frameworks)

๐Ÿ“ Folder Structure


calculator-app/
โ”‚โ”€โ”€ index.html
โ”‚โ”€โ”€ style.css
โ””โ”€โ”€ script.js


๐Ÿ› ๏ธ Technologies Used

  • HTML5
  • CSS3
  • JavaScript (ES6)

โ–ถ๏ธ How to Run

  1. 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" />


About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published