A simple web-based calculator built with HTML, CSS (Tailwind), and JavaScript.
- Basic arithmetic operations: Addition, Subtraction, Multiplication, and Division.
- Responsive and styled using Tailwind CSS.
- Dynamic button generation for numbers and operators.
- Clear button to reset the calculation.
- HTML
- Tailwind CSS
- JavaScript
- Clone the repository:
git clone https://github.com/your-username/calculator-project.git
- Navigate to the project folder:
cd calculator-project - Open
index.htmlin a browser.
calculator-project/
│── index.html # Main HTML file
│── index.js # JavaScript logic for calculator
│── src/
│ └── output.css # Tailwind CSS file
- Click on numbers to input values.
- Click on operators (+, -, *, /) to perform calculations.
- Press
=to get the result. - Press
Clearto reset the calculator.
- Add keyboard support for entering numbers and operations.
- Improve styling and animations.
- Handle edge cases for invalid inputs.