Skip to content

Commit 32e7c05

Browse files
chapter example
1 parent 86a7806 commit 32e7c05

File tree

1 file changed

+1
-0
lines changed
  • more-on-functions/chapter-examples/recursion-base-case

1 file changed

+1
-0
lines changed

more-on-functions/chapter-examples/recursion-base-case/factorial.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,5 @@ function factorial(integer){
99
}
1010

1111

12+
1213
//Skill boost! Add validation to return an error message if the function is passed a string, negative number or a decimal value.

0 commit comments

Comments
 (0)