added factorial module

This commit is contained in:
szabomarton
2024-10-22 13:12:20 +02:00
parent 7f2ddb3a86
commit e12780f413
2836 changed files with 207364 additions and 0 deletions

View File

@@ -0,0 +1,7 @@
function factorial(number){
if (number == 1){
return 1;
}
return number * factorial(number - 1);
};
export {factorial};