https://github.com/riannbarbosa/basiccalculatorv2
Just a basic calculator script that do 4 operations: plus, division, times and subtraction. Using Mathjs API.
https://github.com/riannbarbosa/basiccalculatorv2
api api-rest asynchronous-programming chai javascript mocha mocha-chai packages
Last synced: 2 months ago
JSON representation
Just a basic calculator script that do 4 operations: plus, division, times and subtraction. Using Mathjs API.
- Host: GitHub
- URL: https://github.com/riannbarbosa/basiccalculatorv2
- Owner: riannbarbosa
- License: mit
- Created: 2023-01-13T17:41:37.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-01-18T17:32:52.000Z (over 2 years ago)
- Last Synced: 2025-01-16T10:32:12.482Z (4 months ago)
- Topics: api, api-rest, asynchronous-programming, chai, javascript, mocha, mocha-chai, packages
- Language: JavaScript
- Homepage:
- Size: 67.4 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Just a Basic Calculator
Just a script of a basic calculator that do 4 operations: **plus**, **division**, **times** and **subtraction**.
**How to use:**
- To use plus just call, **plus(_num1, num2_)**
- To use division just call, **divide(_num1, num2_)**
- To use times just call, **times(_num1, num2_)**
- To use subtracion just call, **sub(_num1, num2_)****Usage example**
For async function, now just call like the example above:
```
const calcs = async () => {
plus(2, 2);
};
calcs();
```**_This is a package created for learning purposes!!_**