I have the following code but it is not giving perfect result for factorial can u find it out plz
//This is fastest way to implement factorial const fact = n => !n ? 1 : n * fact(--n); console.log(fact(10))