npm-package-sum
v1.0.4
Published
Npm package creation
Downloads
2
Maintainers
Readme
hello everyone!!
Basically the above NPM Package will help you to find the sum of elements in an array.
installaions: npm i npm-package-sum
For old JavaScript :
You can simply follow the below Steps:
- Install the Package;
- const variable_name = require("npm-package-sum")
- console.log(variable_name(array_of_numbers));
- you can see the output
Sample Example:-
const sum = require("npm-package-sum")
let arr = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]
console.log(sum(arr));