@hibbanur-rahman/sum-package
v1.0.0
Published
A simple package to add two numbers
Maintainers
Readme
@hibbanur-rahman/sum-package
A simple and lightweight npm package to add two numbers.
Installation
npm install @hibbanur-rahman/sum-packageUsage
const { add } = require('@hibbanur-rahman/sum-package');
// Add two numbers
const result = add(5, 3);
console.log(result); // Output: 8
// Works with decimals
const decimalResult = add(2.5, 3.7);
console.log(decimalResult); // Output: 6.2API
add(a, b)
Adds two numbers together.
Parameters:
a(number): First numberb(number): Second number
Returns:
number: The sum of a and b
License
MIT
Author
Hibbanur Rahman
Repository
https://github.com/Hibbanur-Rahman/sum
