This is a simple calculator web application built with HTML, CSS, and JavaScript. It allows users to perform basic arithmetic operations such as addition, subtraction, multiplication, and division.
- Clear the calculator's display
- Delete the last character entered
- Input decimal numbers
- Perform addition, subtraction, multiplication, and division operations
- View the previous and current operands
- Get the computed result
This calculator was created as a demonstration of my abilities in tackling a web development project. It showcases my proficiency in HTML, CSS, and JavaScript, as well as my understanding of core concepts such as DOM manipulation, event handling, and object-oriented programming.
To use the calculator locally, follow these steps:
- Clone the repository:
git clone https://github.com/ramez08/calculator.git
- Open the
index.html
file in your web browser.
NOTE: If no styling appears, ensure the file is exported and not in a zip file.
- Click the number buttons to input digits.
- Click the operation buttons to select the desired operation.
- Click the "=" button to compute the result.
- Click the "AC" button to clear the calculator's display.
- Click the "DEL" button to delete the last character entered.
You can customize the calculator's styling by modifying the styling.css
file. Adjust the colors, sizes, and layout to match your preferences.
Contributions are welcome! If you find any issues or have suggestions for improvements, please open an issue or submit a pull request.
This project is licensed under the MIT License.