An open API service indexing awesome lists of open source software.

https://github.com/polymathuniversata/calculator-app


https://github.com/polymathuniversata/calculator-app

Last synced: 4 months ago
JSON representation

Awesome Lists containing this project

README

          

# Simple Calculator

This is a simple calculator web application with an additional square root function.

## Features
- Basic arithmetic operations: addition, subtraction, multiplication, division.
- Square root function.

## How to use
1. Open `index.html` in your web browser.
2. Use the buttons to input numbers and perform calculations.
3. Press the "C" button to clear the display.

## Running Tests
1. Open `tests/test.js` in a text editor.
2. Adjust the test cases as needed.
3. Open `index.html` in your web browser.
4. Open the browser console (usually by right-clicking and selecting "Inspect," then navigating to the "Console" tab).
5. Run the tests by calling `testCalculator()` in the console.

## Notes
- Avoid using the calculator for complex calculations, as it's a simple example for learning purposes.
- For educational purposes only.