What is the result of executing line 04?

A developer writers the code below to calculate the factorial of a given number.

Function factorial(number) {

Return number + factorial(number -1);

}

factorial(3);

What is the result of executing line 04?
A . 0
B. 6
C. -Infinity
D. RuntimeError

Answer: D

Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments