diff options
author | 0riginaln0 <74508026+0riginaln0@users.noreply.github.com> | 2024-04-14 07:27:58 +0300 |
---|---|---|
committer | Louis Pilfold <louis@lpil.uk> | 2024-04-15 13:10:48 +0100 |
commit | 172143aba44a047c9fc7113670900834ae62cbae (patch) | |
tree | ac613108f9f4198d590abe57939984ce9fbab601 /src/content/chapter1_functions | |
parent | a1c22e954299de5c823ec47cd2f633355764e3b2 (diff) | |
download | tour-172143aba44a047c9fc7113670900834ae62cbae.tar.gz tour-172143aba44a047c9fc7113670900834ae62cbae.zip |
factorial(0) = 1 case added for recursion
Executing a factorial from zero is expected to return one, not "RangeError: Maximum call stack size exceeded"
Diffstat (limited to 'src/content/chapter1_functions')
0 files changed, 0 insertions, 0 deletions