Skip to content

Commit a540dcb

Browse files
authoredApr 24, 2020
updated closure.js
changed factorial to summation (factorial is for multiplication)
1 parent fc66d8e commit a540dcb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎challenges/closure.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,4 +21,4 @@ myFunction();
2121

2222
/* Task 2: Counter */
2323

24-
/* Create a function called `factorial` that accepts a parameter and uses a counter to return the factorial of that number. For example, `factorial(4)` should return 10 because 1+2+3+4 is 10. */
24+
/* Create a function called `sumation` that accepts a parameter and uses a counter to return the summation of that number. For example, `summation(4)` should return 10 because 1+2+3+4 is 10. */

0 commit comments

Comments
 (0)
Please sign in to comment.