A simple, responsive calculator built using HTML, CSS, and JavaScript. This project replicates the UI design of a basic calculator with essential operations and is optimized for both mobile and desktop views—but puts the numbers in the same order as on a telephone, for those who prefer it.
- Basic arithmetic operations: addition, subtraction, multiplication, and division
- Responsive design for mobile and desktop screens
- Clear, minimalistic UI
- Light blue theme similar to standard calculator applications
Just use it on your phone's web browser.
- HTML for the structure
- CSS for styling and layout
- JavaScript for functional calculator operations
Follow these steps to set up the project locally.
You’ll need a code editor like Visual Studio Code and a browser.
-
Clone the repository:
git clone https://github.com/savagearun/calculator.git
-
Open the project folder:
cd simple-calculator
-
Open
index.html
in your browser to see the calculator in action.
- Click the numbers and operators to perform calculations.
- Use AC to clear the display.
- Supports basic operations: addition (+), subtraction (−), multiplication (×), and division (÷).
- The equal (=) button evaluates the current expression.
- HTML: Contains the calculator layout with a display area and buttons.
- CSS: Styles the layout with a clean, rounded button design and responsive layout for different screen sizes.
- JavaScript: Adds interactivity to the calculator, allowing operations to be calculated and displayed.
Feel free to contribute to this project. Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
This project is open-source and available under the MIT License.
- Original Author: Arun Kumar (GitHub Profile)
- This Fork's Contributors: Kevin Bloch (@codingthat)