We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 88bd8d7 commit 924066bCopy full SHA for 924066b
src/algorithms/math/factorial/factorial.js
@@ -5,7 +5,7 @@
5
exportdefaultfunctionfactorial(number){
6
letresult=1;
7
8
-for(leti=1;i<=number;i+=1){
+for(leti=2;i<=number;i+=1){
9
result*=i;
10
}
11
0 commit comments