Skip to content

Commit eaabc5b

Browse files
nik-revmao-sz
andauthored
feat/ improve order
Co-authored-by: MaoShizhong <[email protected]>
1 parent 052637d commit eaabc5b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

13_factorial/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ Write a recursive function that takes a non-negative integer, and returns the pr
55
For example:
66

77
```javascript
8-
factorial('4'); // Output: undefined
98
factorial(5); // 5 * 4 * 3 * 2 * 1, Output: 120
10-
factorial(7.2); // Output: undefined
119
factorial(0); // Output: 1
10+
factorial(7.2); // Output: undefined
11+
factorial('4'); // Output: undefined
1212
```

0 commit comments

Comments
 (0)