MASAI-CALCULATOR-RETURNS-DOM is a simple, web-based calculator application designed to perform basic arithmetic operations. This project focuses on manipulating the DOM (Document Object Model) to create an interactive and user-friendly interface for performing calculations directly in the browser.
- Basic Arithmetic Operations: Supports addition, subtraction, multiplication, and division.
- Clear Function: Allows users to reset the calculator and start a new calculation.
- Responsive Design: Ensures the calculator is usable on various devices and screen sizes.
- Interactive UI: Provides an easy-to-use interface with buttons for digits and operations.
- HTML: Structure of the calculator interface.
- CSS: Styling for the calculator to make it visually appealing.
- JavaScript: Logic for the calculator operations and DOM manipulation.
- Clone the repository:
git clone https://github.com/yourusername/MASAI-CALCULATOR-RETURNS-DOM.git
cd MASAI-CALCULATOR-RETURNS-DOM
1.Open index.html in your preferred web browser:
open index.html
or
double-click index.html
- Click on the number buttons (0-9) to input digits.
- Click on the operation buttons (+, -, *, /) to perform calculations.
- Click the = button to display the result.
- Click the C button to clear the current input and start over.
MASAI-CALCULATOR-RETURNS-DOM/
├── index.html
├── styles.css
└── script.js
- index.html: Contains the HTML structure of the calculator.
- styles.css: Contains the CSS styles for the calculator.
- script.js: Contains the JavaScript code to handle calculator logic and DOM manipulation.
1.Fork the repository.
- Create a new branch:
git checkout -b feature/your-feature-name
git commit -m "Add some feature"
git push origin feature/your-feature-name
Email:riyasahu678876@gmail.com