Notifications
Clear all
Topic starter
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
Suggested Answer: D
Posted : 09/12/2022 3:52 am