A simple and responsive web-based Calculator built using HTML, CSS, and JavaScript. It performs basic arithmetic operations with a clean and intuitive user interface.
- Perform addition, subtraction, multiplication, and division
- Real-time calculation of expressions
- Clear display functionality
- Responsive design for desktop and mobile devices
- User-friendly interface
- Basic error handling for invalid inputs
- HTML5
- CSS3
- JavaScript (ES6)
├── index.html ├── style.css ├── script.js └── README.md
# Installation
1. Clone the repository:
```bash
git clone https://github.com/your-username/calculator.git
- Navigate to the project folder:
cd calculator- Open
index.htmlin your web browser.
- Enter numbers using the calculator buttons.
- Select an arithmetic operator.
- Press = to view the result.
- Use C to clear the display.
- Scientific calculator functions
- Keyboard support
- Calculation history
- Dark and Light mode
- Percentage and square root operations
- Memory functions
This project demonstrates:
- DOM manipulation
- Event handling in JavaScript
- Responsive web design
- User input validation
- Basic arithmetic logic implementation
Contributions are welcome! Feel free to fork the repository, create a feature branch, and submit a pull request.
This project is licensed under the MIT License.