JavaScript Calculator This is a simple calculator project implemented in JavaScript. It allows users to perform basic arithmetic operations such as addition, subtraction, multiplication, and division.
Features Addition: Add two numbers together. Subtraction: Subtract one number from another. Multiplication: Multiply two numbers. Division: Divide one number by another. Getting Started Prerequisites To run the calculator, you need a web browser that supports JavaScript.
Installation Clone the repository: git clone https://github.com/holytimy4/kpi_f.git Navigate to the project directory: cd calculator Usage Open the index.html file in a web browser. Enter the first number in the input field. Select the desired arithmetic operation from the dropdown menu. Enter the second number in the input field. Click the "Calculate" button. The result will be displayed below the button. Examples Addition: Input: 5 + 3 Output: 8
Subtraction: Input: 10 - 4 Output: 6
Multiplication: Input: 2 * 6 Output: 12
Division: Input: 15 / 3 Output: 5
Contributing Contributions are welcome! If you have any suggestions, bug reports, or feature requests, please open an issue or submit a pull request.
License This project is licensed under the MIT License. See the LICENSE file for details.
Acknowledgments The calculator project was completed as a part of the 1st course at KPI. Inspiration for this project was drawn from various online resources and tutorials.