mishra_function
v1.0.0
Published
This pakage contain lot of function
Downloads
2
Readme
mishra-calcuater library
This library can be used with any JS based Frontend as well as Node.js backend to get some utility function
Functions
Add(x, y) Adds two numbers x and y and returns the result. subtract(x, y) Subtracts y from x and returns the result. multiply(x, y) Multiplies x and y and returns the result. divide(x, y) Divides x by y and returns the result.
Library Usage
const calci = require('./calci');
console.log(calci.Add(5, 3)); // Output: 8
console.log(calci.subtract(10, 4)); // Output: 6
console.log(calci.multiply(2, 6)); // Output: 12
console.log(calci.divide(15, 3)); // Output: 5
Installation
npm install my-calculator-module
import
const calci = require('my-calculator-module');