Calculator is a simple web application that provides basic arithmetic operations. It allows users to perform calculations, including addition, subtraction, multiplication, and division.
- Calculator interface with buttons for digits (0-9) and operations (+, -, *, /).
- Ability to perform multiple consecutive operations but it can only evaluate a single pair of numbers at a time
- Clear button to reset the calculation.
- Delete button to delete the last digit.
- Display area to show the current expression and result.
The repository hase the following structure:
index.html
: The main HTML file that contains the user interface.script.js
: The JavaScript file that handles app functionality.style.css
: The CSS file that styles the user interface.README.md
: The README file that provides an overview of the project and instructions for running the game.
To run this project locally, follow these steps:
-
Clone the repository:
git clone https://github.com/sofiabaezzato/calculator.git
-
Navigate to the project directory:
cd calculator
- Open the
index.html
file in your preferred web browser. - Use the digit buttons to enter numbers for the calculation.
- Click on the operation buttons to perform arithmetic operations.
- The result will be displayed in the calculator's display area.
- Use the "DEL" button to delete the last digit or use the "AC" button to clear the current calculation and start over.