Two Ways of Calculating Euler's Number
This page shows two ways of calculating Euler's Number. The first is straightforward enough using a scientific calculator, the second is more difficult but gives a better answer. The javaScript function I use to calculate a factorial is as follows.
function fact(num) {
let fact = 1;
let i = 1;
let bin = num;
for (i = bin; i >= 1; i--){
fact = fact * i;
}
return(fact);
}