num_nest_73
v1.0.7
Published
![image](/cal.png)
Downloads
26
Readme
num_nest_73
A calculater which returns specific result
- Average
- Prime
- Factorial
Input Example
- After you download the npm package command "num_nest_73 avg 1 2 3" it returns 2
Code Example
function avg(numbers) {
let s = numbers.reduce((prev, curr) => prev + curr, 0);
return s / numbers.length;
}
Npm link
-npm