A simple JavaScript calculator with a clean and accessible design. It can perform basic arithmetic operations, including addition, subtraction, multiplication, and division. The calculator also provides error handling for division by zero and supports keyboard inputs, backspace, and decimal numbers.
- Basic arithmetic operations (addition, subtraction, multiplication, division)
- Error handling for division by zero
- Keyboard inputs support
- Backspace functionality
- Decimal number support
You can try the calculator in action by visiting the Live Demo.
-
Clone the repository or download the source code to your local machine.
-
Open the
index.html
file in your web browser. -
You can interact with the calculator using the on-screen buttons or your keyboard.
Follow these steps to get started with the project:
-
Clone the repository:
git clone https://github.com/DanteAgarwal/calculator.git
-
Open the project folder in your code editor.
-
Open the
index.html
file in your web browser to use the calculator.
- HTML
- CSS
- JavaScript
- Highlight.js - Syntax highlighting for code snippets
This project is licensed under the MIT License. For more details, see the LICENSE file.
- Highlight.js for code syntax highlighting
Feel free to contribute to this project or use it in your own applications. If you have any suggestions or issues, please create an issue on GitHub.
Enjoy using the JavaScript Calculator!