Check it out here: WebCalculator
A lightweight on-screen calculator built with plain HTML, CSS, and JavaScript.
Enter a first number, pick an operator, enter a second number, then hit = to see the result.
- Addition, subtraction, multiplication and division
- Clear button resets everything
- Snarky error if you try to divide by zero
- Prevents accidental consecutive-operator presses
- Rounds long decimals to fit the display
- Clone the repo
git clone https://github.com/AustinFash/WebCalculator.git
- Open the folder in your editor of choice.
- Start Live Preview (e.g. VS Code Live Server) on
index.html. - Click the buttons to perform arithmetic operations.
Enjoy! 🎉
