nodepackage_basic_calculator
v1.0.0
Published
Basic Calculator for Javascript Users
Readme
Simple Calculator
A simple calculator package for performing basic arithmetic operations.
Installation
You can install the simple calculator package via npm.
npm install nodepackage_basic_calculatorUsage
// How to import a simple calculator package
const functname = require ('nodepackage_basic_calculator');
//lets add two numbers
const sum = add(23,56);
console.log(`Sum is ${sum}`);API DOCUMENTATION
add (a,b)
Adds two numbers together.
Parameters
-a: The first number to add.
-b: The second number to add.
Returns
The result of adding a and b.
subtract (a,b)
Subtracts two numbers together.
Parameters
-a: The first number .
-b: The second number .
Returns
The result of subtraction a and b.
multiply (a,b)
Multiplys two numbers together.
Parameters
-a: The first number .
-b: The second number .
Returns
The result of multiplication a and b.
divide (a,b)
Divides two numbers together.
Parameters
-a: The first number .
-b: The second number .
Returns
The result of Division a and b.
License
The package is licensed under the ISC.
