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
Latest JavaScript Developer I Practice Questions with 144 Q&As
Updated Study Material | Instant Download | Detailed Answers and Explanations
Subscribe
Login
0 Comments