This is a simple calculator web application built using HTML, CSS, and JavaScript. The calculator allows users to perform basic arithmetic operations such as addition, subtraction, multiplication, and division. It also supports decimal numbers and parentheses for complex expressions.
Click here to visit the website
• HTML: Structure of the calculator interface.
• CSS: Styling and layout of the app for a better user experience.
• JavaScript: Functionality for handling user inputs, calculating results, and updating the display.
• Basic Arithmetic Operations: Addition, subtraction, multiplication, and division.
• Decimal Support: Allows decimal calculations.
• Parentheses Support: To handle operations in the correct order.
• Responsive UI: The layout adjusts based on the screen size for mobile and desktop devices.
- Clone the repository:
git clone https://github.com/Oanekrif/Calculator.git
- Navigate to the project folder:
cd Calculator
- Open the index.html file in your browser:
open index.html # or double-click the file to open it in your browser
- Start using the calculator by clicking on the buttons for numbers and operations.
• Click on the numbers and operators to form an expression.
• Click "=" to evaluate the expression.
• Click "AC" to clear the input field and start over.
• Supports parentheses for managing operation precedence.
• The design uses a beige background with a dark button style for numbers and operations. When hovering over buttons, they switch to a lighter theme for a more interactive feel.
• Buttons for operators and "=" have a distinct background color for easy identification.
Feel free to fork the repository, make changes, and submit pull requests for improvements or bug fixes.