what is the result of executing the code?

A developer writes the code below to calculate the factorial of a given number function sum(number)

{

return number * sum(number-1);

}

sum (3);

what is the result of executing the code?
A . 0
B. 6
C. Error
D. -Infinity

Answer: C

Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments