Remove live code & console.log, leave examples as comments (Geometry, Graphs, Maths).

This commit is contained in:
Eric Lavault
2021-10-10 17:55:08 +02:00
parent 29d2a84090
commit 9212e6d684
18 changed files with 198 additions and 216 deletions

View File

@@ -1,7 +1,7 @@
/*
author: Theepag
*/
const factorialize = (num) => {
export const factorialize = (num) => {
// Step 1. variable result to store num
let result = num
// If num = 0 OR 1, the factorial will return 1
@@ -14,6 +14,3 @@ const factorialize = (num) => {
// Step 3. Return the factorial
return result
}
// test
console.log(factorialize(5))
console.log(factorialize(4))