A simple calculator app built with HTML, CSS, and JavaScript. This calculator supports basic arithmetic operations such as addition, subtraction, multiplication, and division.
Features
- Basic Arithmetic Operations: Addition, subtraction, multiplication, and division.
- Clear Function: Reset the calculator display.
- Responsive Design: Works on both desktop and mobile devices.
- User-Friendly Interface: Easy-to-use interface.
Installation
To run the calculator app locally, follow these steps:
- Clone the repository:
shell
git clone https://github.com/kimkorngmao/js-calculator-app.git
- Navigate to the project directory:
shell
cd js-calculator-app
- Open
index.html
in your browser:shellopen index.html
Usage
- Enter numbers using the buttons on the calculator.
- Use the operation buttons (+, -, *, /) to perform calculations.
- Click the "=" button to see the result.
- Use the "AC" button to clear the display.
Project Structure
plaintextjs-calculator-app/ ├── index.html ├── style.css ├── script.js └── switch-mode.js