A simple web-based calculator built with HTML, CSS, and JavaScript.
This project provides a basic calculator interface for performing arithmetic operations such as addition, subtraction, multiplication, and division. The calculator is responsive and works in modern browsers.
- Addition, subtraction, multiplication, and division
- Decimal point support
- Clear (C) button to reset input
- Delete (⌫) button to remove the last character
- Responsive design
- Chained operations (e.g.,
2 + 3 + 4) may not work as expected; only two-number operations are supported at a time. - No support for parentheses or advanced mathematical functions.
- Input validation is minimal (e.g., multiple decimals can be entered).
- Clone the repository:
git clone https://github.com/FerrisThiel/calculator.git cd calculator - Open
index.htmlin your web browser.
Access the calculator directly at:
https://ferristhiel.github.io/calculator
index.html– Main HTML filestyle.css– Stylesheetapp.js– Calculator logic
MIT License